← Back to team overview

sikuli-driver team mailing list archive

[Bug 1312239] Re: sys.path does not include PYTHONPATH environment variable

 

** Description changed:

- If I want to import 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 (as standard Python) will  include these paths.
- But that does not happen.  os.environ["PYTHONPATH"] is set properly with my paths from the environment variable, but sys.path does not include them
+ 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:
  sys.path does not include PYTHONPATH environment variable

Status in Sikuli:
  New

Bug description:
  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


References