during import search dir of importing script first

Bug #799223 reported by anatoly techtonik
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
SikuliX
Fix Released
High
RaiMan

Bug Description

Factored out from the very long bug #799067.

The standard import in a Sikuli script does not search for an imported .sikuli in the directory containing the main script. Need to mention that normal Python does look up in this dir first. For Sikuli there is a documented workaround - http://sikuli.org/docx/globals.html - but it is not intuitive for Python users mainly because it doesn't explain why this change of behavior is required.

RaiMan adds:
It is the users responsibility to avoid naming conflicts
between .py-modules and .sikuli-folders. This behavior should be
consistent for any supported type of running a Sikuli script.

Changed in sikuli:
status: New → In Progress
importance: Undecided → High
assignee: nobody → Tsung-Hsiang Chang (vgod)
Changed in sikuli:
status: In Progress → Fix Committed
milestone: none → x1.0-rc3
RaiMan (raimund-hocke)
Changed in sikuli:
status: Fix Committed → Fix Released
assignee: Tsung-Hsiang Chang (vgod) → RaiMan (raimund-hocke)
milestone: x1.0-rc3 → 1.0.0
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.