Question #243323 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/243323
RaiMan posted a new comment: yeah, not that easy to look through ;-) but now you are nearly there. a little know how boost: from sikuli import assignment1 what you are saying to Sikuli: look for a module sikuli and inside this module look for something named assignment1 This cannot work, since the module sikuli comes with the package (therefor the from sikuli import *, so all names contained in sikuli module and submodules are known in your script - for the main script this is done automatically at runtime), because it does not have anything named assignment1 (and if it had, it would not be what you want ;-) modules are found by their name in the folders listed in sys.path. with <sys.path.append(os.path.dirname(subPath))> we have put the parent folder of the unzipped assignment1.sikuli on sys.path. now assignment1.sikuli is locatable. so simply import assignment1 will import your stuff according to the rules that apply to importing a .sikuli script this way: - the contained .py script is imported according to the Python-rules - the path to the .sikuli folder is put on ImagePath (so images referenced in the imported module are found.) now you can use names defined in assignment1 like this: assignment1.some_name (variable) assignment1.some_name() (function or class) If you have taken care, that you will not get any name clashes (naming convention) you might use as well from assignment1 import * some_name (variable) some_name() (function or class) hope this helps -- 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 : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp