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

Bug #1504901 reported by RaiMan on 2015-10-11
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Sikuli
Medium
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) on 2015-10-11
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) on 2015-10-16
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
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers