[1.1.0] Jython: bundle path not in sys.path when running script from command line --- use 1.1.4+

Bug #1504901 reported by RaiMan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
SikuliX
Fix Released
Undecided
RaiMan

Bug Description

*********** workaround

# before the first import
import org.sikuli.util.JythonHelper
JythonHelper.get().addSysPath(getBundlePath())

----------------------------------------

When I try to execute my test from the command line I get the following output:

E:\PDI\Cloud\QAVDC\Sikuli\Portal_Autoservicio> E:\PDI\Cloud\SikuliX\runsikulix.cmd -r Login.sikuli

[error] script [ E:\PDI\Cloud\QAVDC\Sikuli\Portal_Autoservicio\Login.sikuli ] stopped with error in line 1
[error] ImportError ( No module named config )
However it works wonderfully when I execute it from SikuliX IDE.

conf.py file is in Login.sikuli folder and usually that is enough for python, shouldn't it be found?

RaiMan (raimund-hocke)
Changed in sikuli:
status: New → Fix Committed
importance: Undecided → High
assignee: nobody → RaiMan (raimund-hocke)
milestone: none → 1.1.1
description: updated
RaiMan (raimund-hocke)
summary: [1.1.0] Jython: bundle path not in sys.path when running script from
- command line
+ command line --- workaround
Changed in sikuli:
importance: High → Medium
RaiMan (raimund-hocke)
Changed in sikuli:
status: Fix Committed → Fix Released
importance: Medium → Undecided
milestone: 1.1.1 → none
summary: [1.1.0] Jython: bundle path not in sys.path when running script from
- command line --- workaround
+ command line --- use 1.1.4+
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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