sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #56474
Re: [Question #695145]: addImagePath after runScript()
Question #695145 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/695145
Description changed to:
Hey Folks,
I build up lots of scripts, working together like a charm 😄
I import different Sikuli Scripts by running the runScript() command and after finishing the script, it returns to my main script and starts another runScript() and so on...
So far I have to use the addImagePath of the main script after every runScript() to get the correct image path again.
My question is, is there a way to define a function, that the image path of the active script will be imported?
something like:
def AutoImportPath():
addImagePath(of the actual path/sikuli.file of the working script)
is there a way to get the path and name of the working sikuli file?
I searched in python forums and here as well, but can't find a solution how to get this working.
any ideas?
this would clean up my code that much 😄
thx for your help!
greetings!
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.