sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #03428
[Bug 799067] Re: X-1.0rc3: Windows: import broken
I am not talking about windows system path :-(
... talking about the Jython's import path:
according to the current docs/implementation, which should be still
valid for rc3 (nothing changed in that area):
if you want to import .sikuli:
dir = "path to the folder that contains the .sikuli"
if not dir in sys.path: sys.path.append(dir)
from myscript import *
(the path to the .sikuli is added to the image-path as well)
I found situations, where such an import worked without maintaining
sys.path, when the imported script is in the same directory as the main
script. I do not know, whether this is a feature - at least it is not
reliable and not consistent.
--
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/799067
Title:
X-1.0rc3: Windows: import broken
Status in Sikuli:
New
Bug description:
It may be too early to report, but the latest binary from
http://sikuli.org/hudson/ can not find .sikuli files imported as:
from imglib import *
This works in X-1.0rc2
To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/799067/+subscriptions
References