** Description changed: - back to work: - - should be JYTHONPATH if specified - - .pth files should be recognised as well + current state for version 1.1.0: + - PYTHONPATH is ignored + - JYTHONPATH is used if specified and overwrites -Dpython.path which is used if present + + still to do + - .pth files should be recognised as well (if in JYTHONPATH/site-packages) ------------------------ available now in 1.1.0 2014-09-17+ in sys.path at script runtime OS environment PYTHONPATH variable with one or more paths separated by : or ; respectively. -------------------------------------------------------- If I want to import Python scripts without manually setting sys.path beforehand (as in an automated testing environment), I set the environment variable PYTHONPATH to where the scripts to be imported are, and sys.path will include these paths. But that does not happen for Sikuli scripts: os.environ["PYTHONPATH"] is set properly with my paths, but sys.path does not include them. Windows 7, 64 bit Sikuli 1.0.1
** Description changed: current state for version 1.1.0: - PYTHONPATH is ignored - JYTHONPATH is used if specified and overwrites -Dpython.path which is used if present still to do - .pth files should be recognised as well (if in JYTHONPATH/site-packages) + + in any case: + import org.sikuli.script.SikulixForJython + (or deprecated: import org.sikuli.basics.SikulixForJython) + takes care, that sikulixapi.jar/Lib gets sys.path[0] ------------------------ available now in 1.1.0 2014-09-17+ in sys.path at script runtime OS environment PYTHONPATH variable with one or more paths separated by : or ; respectively. -------------------------------------------------------- If I want to import Python scripts without manually setting sys.path beforehand (as in an automated testing environment), I set the environment variable PYTHONPATH to where the scripts to be imported are, and sys.path will include these paths. But that does not happen for Sikuli scripts: os.environ["PYTHONPATH"] is set properly with my paths, but sys.path does not include them. Windows 7, 64 bit Sikuli 1.0.1 -- You received this bug notification because you are a member of Sikuli Drivers, which is subscribed to Sikuli. https://bugs.launchpad.net/bugs/1312239 Title: [request] sys.path should include PYTHONPATH environment variable (or JYTHONPATH if available) Status in Sikuli: Fix Committed Bug description: current state for version 1.1.0: - PYTHONPATH is ignored - JYTHONPATH is used if specified and overwrites -Dpython.path which is used if present still to do - .pth files should be recognised as well (if in JYTHONPATH/site-packages) in any case: import org.sikuli.script.SikulixForJython (or deprecated: import org.sikuli.basics.SikulixForJython) takes care, that sikulixapi.jar/Lib gets sys.path[0] ------------------------ available now in 1.1.0 2014-09-17+ in sys.path at script runtime OS environment PYTHONPATH variable with one or more paths separated by : or ; respectively. -------------------------------------------------------- If I want to import Python scripts without manually setting sys.path beforehand (as in an automated testing environment), I set the environment variable PYTHONPATH to where the scripts to be imported are, and sys.path will include these paths. But that does not happen for Sikuli scripts: os.environ["PYTHONPATH"] is set properly with my paths, but sys.path does not include them. Windows 7, 64 bit Sikuli 1.0.1 To manage notifications about this bug go to: https://bugs.launchpad.net/sikuli/+bug/1312239/+subscriptions _______________________________________________ Mailing list: https://launchpad.net/~sikuli-driver Post to : [email protected] Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp

