sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #54417
[Bug 1865423] Re: [2.0.x] Batch env paths are not considering in Sikuli IDE
ok, the situation is clear.
>From the beginning I did not understand the reason behind all this set
and %% stuff.
This simply works in 1.1.3:
- put the sikulix.jar in a folder C:\SikuliX
- put a test.sikuli into a folder C:\SikuliX\Lib
- double-click the sikulix.jar in the explorer
- the IDE starts up
running the one-liner
for e in sys.path: print e
you will get:
<user-home>\Dropbox\_SXSupport\_A_test_path\testMain.sikuli
<user-home>\AppData\Roaming\Sikulix\Lib\site-packages
<user-home>\AppData\Roaming\Sikulix\Lib
C:\SikuliX\Lib
C:\SikuliX\sikulix.jar\Lib
__classpath__
__pyclasspath__/
--- the reason behind:
in 1.1.3 the 2 entries
C:\SikuliX\Lib
C:\SikuliX\sikulix.jar\Lib
are automatically added to the Jython sys.path by SikuliX
... and it has nothing to do with any PATH settings whatever.
It is simply taken from the place the sikulix.jar was loaded from.
In 2.0.x this is no longer done, because of potential clashes on
sys.path.
If you want to have your own stuff automagically on sys.path, the this are your options:
https://sikulix-2014.readthedocs.io/en/latest/scenarios.html#access-python-packages-from-sikulix-scripts-run-by-sikulix-gui-or-commandline
with approach 2 your own stuff can be everywhere.
** Changed in: sikuli
Status: In Progress => Won't Fix
** Changed in: sikuli
Importance: Medium => Undecided
** Changed in: sikuli
Milestone: 2.0.4 => 2.0.0
--
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/1865423
Title:
[2.0.x] Batch env paths are not considering in Sikuli IDE
Status in Sikuli:
Won't Fix
Bug description:
i have set below path and try to import modules from below path not working
SET PATH=%c:\test_path%;%PATH%
Note: SikuliIDE 1.1.3 is working but latest releases its not working
To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1865423/+subscriptions
References