← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #698112]: Windows 10: imports no longer working after moving to newest version (run from comand line, sys.path not containing location of common modules)

 

Question #698112 on SikuliX changed:
https://answers.launchpad.net/sikuli/+question/698112

Richard Chubb posted a new comment:
--- my repacked SikuliX IDE jar
for the sites.txt solution, there is no need to pack anything into the SikuliX IDE jar.
A path given in sites.txt is simply added to sys.path at runtime init.

for your cases where are you putting the sites.txt file so that it is picked up when running the scripts?
I put it here originally as per the instructions in the docs
C:\Users\richardc\AppData\Roaming\Sikulix\Lib\site-packages
but this didn't work.
The only thing that worked was to put it in
sikulixide-2.0.5\Lib\site-packages
and run 
Sikulix.buildJarFromFolder("F:\Autotester\New Sikuli\sikulixide-2.0.5.jar", "F:\Autotester\New Sikuli\sikulixide-2.0.5")
to create a new jar file with it in and use that in place of the original 2.0.5 IDE jar

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for SikuliX.