sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #04246
Re: [Question #166490]: path wrong when doing import in a skl file
Question #166490 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/166490
Status: Open => Answered
RaiMan proposed the following answer:
since a .skl is a zipped version of the script folder, it is unzipped to
a temp folder to run it.
getBundlePath() reflects the situation at runtime, so it is the temp
folder in case of a .skl.
The only solution currently: run it as a .sikuli from commandline using
the -r option.
If you want to run it as .skl (which makes no sense in your case, since
the imported stuff must be a .sikuli (no .skl supported)), you have to
give the current working directory as a parameter to the script.
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.