sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #01129
Re: [Question #144555]: How can I import Sikuli scripts to re-use them?
Question #144555 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/144555
Status: Needs information => Open
Tedi Roca gave more information on the question:
Thanks RaiMan.
I don't know what I did different but now it's recognized, but still
cannot get it working.
#### Library script ####
from sikuli.Sikuli import *
def setPermission (self):
print ("hola")
###################
####### Test Script ############
myScriptPath = "C:\\scripts\\sanity_test\\"
if not myScriptPath in sys.path: sys.path.append(myScriptPath)
import Project_Sanity_Test_library
from Project_Sanity_Test_library import *
setPermission
#############################
Console output:
[debug] close all ScreenHighlighter
[debug] close all ScreenHighlighter
[info] Exited with code 0
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.