sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #39107
Re: [Question #303256]: How to use relative path in Sikuli to load another python script
Question #303256 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/303256
Status: Answered => Solved
HuyNguyen confirmed that the question is solved:
Hi Raiman,
By "relative path" I mean the script can load python functions/variables
defined in a separate .py file locating in another folder (but same
parent folder). In this case, it is the setup_config.py file which is
the only file we want to update when running on another PC or testing
for new version of DUT
I seems to find the solution with getParentFolder() command. I can use
that command to get absolute path of the parent folder and append with a
folder name.
Thanks for your support :)
Huy
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.