Question #138597 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/138597
RaiMan posted a new comment: have a look at the new doc at http://sikuli.org/docx/globals.html#importing-other-sikuli-scripts-reuse-code-and-images and decide to change your approach from execfile to using import in the long run (when the bug is fixed, the addImagPath calls would not be needed with import -> X 1.0rc2 end of January) With your solution, with every run in the IDE, the path's will be added again. That might not be a big problem, but you could use: if not ModPath in list(getImagePath()): addImagePath(ModPath) # to avoid double entries ---- the error you mentioned above is because the s in "if not s" is not defined, should have been subPath ( sorry;-) subPath = "path-to-sub-sikuli" #Module 1 path if not s in sys.path: sys.path.append(subPath) import sub However it showed: "NameError: name 's' is not defined. You received this question notification because you are a member of Sikuli Drivers, which is an answer contact for Sikuli. _______________________________________________ Mailing list: https://launchpad.net/~sikuli-driver Post to : [email protected] Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp

