← Back to team overview

sikuli-driver team mailing list archive

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

 

> The situations cannot be compared this way.

I think the point of conflict here is that you look at this behavior
from the point of view of application developer and I am looking from
the user point of view. ,)

As a user, I do not threat .sikuli scrips as directories, because inside
sikuli you use 'import lib' statement to import 'lib.sikuli' script, not
some 'import lib.sikuli.lib' statement (which is not valid in Python
anyway).


Now about use cases. We use two different use cases. My use case is that "I expect Sikuli script import mechanism work exactly as in Python" and I do not want to hardcode system paths to include scripts as Sikuli proposes. Your use case (IIUC) is to be able to import scripts using explicit absolute and relative paths. Is that right?

In this case I'd first define which user story has a higher priority and
try to work on it.

> the implicit import location is not related to the main script
location, but it relates to the runtime environment

Perhaps Python doesn't define the rules for implicit module search order
clearly enough at http://docs.python.org/tutorial/modules.html#the-
module-search-path - I filled a bug about it at
http://bugs.python.org/issue12359 - but if you read
http://docs.python.org/library/sys.html#sys.path - you will find that
Python doesn't search cwd. If Sikuli doesn't follow the rules, it should
be documented somewhere.


** Bug watch added: Python Roundup #12359
   http://bugs.python.org/issue12359

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