Not finding modules for Sikuli 1.1.1

Asked by Aaron on 2017-06-13

I cannot seem to fix the problem of "Import error (module explorer not found)" when running Sikuli from command line or the IDE. These are modules that we have written ourselves, so Sikuli CAN find the normal "import sikuli" modules, however even after we tried linking the explorer.py, to the directory it still could not find the modules.

In other words, if a module is missing/there's a home written module, is there a way I can tell Sikuli it's path and to look for it there when running import?

Thanks

Question information

Language:
English Edit question
Status:
Answered
For:
Sikuli Edit question
Assignee:
No assignee Edit question
Last query:
2017-06-13
Last reply:
2017-06-13
masuo (masuo-ohara) said : #1

see this document.
http://sikulix-2014.readthedocs.io/en/latest/globals.html

[there is sample codes in this document.]
myPath = "some-absolute-path"
if not myPath in sys.path:
        sys.path.append(myPath)

Can you help with this problem?

Provide an answer of your own, or ask Aaron for more information if necessary.

To post a message you must log in.