← Back to team overview

sikuli-driver team mailing list archive

[Bug 799067] Re: X-1.0rc3: Windows: import broken

 

Sorry, not true, what you are telling:

It is exactly, as Python handles imports - and in fact the standard
importing (Jython in this case) is used internally. There is only some
pre- and post-processing added to handle the fact, that we are not
importing .py's directly and that the imported scripts might contain
images, that have to be found without any additional effort (image-
path).

So same as in Python: if you want to import any user module, the
containing directory has to be in sys.path.

you say:
Sikuli shouldn't add current directory to sys.path (for security reasons), but it should add script's directory - that will be logical.

This seems to be a valid convenience request (but in my opinion not
really needed)

-- 
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