← Back to team overview

sikuli-driver team mailing list archive

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

 

** Changed in: sikuli
       Status: Fix Committed => Fix Released

** Changed in: sikuli
   Importance: Medium => Undecided

** Changed in: sikuli
    Milestone: 1.1.1 => None

** Summary changed:

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

-- 
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/1504901

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

Status in Sikuli:
  Fix Released

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?

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1504901/+subscriptions


References