sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #25186
[Bug 1303904] Re: Windows: Environment Path cannot be changed -- os.environ is readonly in Jython
see new title.
** Summary changed:
- Unable to run .exe file setting environment variables
+ Windows: Environment Path cannot be changed -- os.environ is readonly in Jython
** Changed in: sikuli
Status: Incomplete => Won't Fix
--
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/1303904
Title:
Windows: Environment Path cannot be changed -- os.environ is readonly
in Jython
Status in Sikuli:
Won't Fix
Bug description:
Hi,
I don't want to hard code the path to the .exe file I want to test in my .sikuli file. Our automated test will run the .exe file through the settings of environment variables, without hard coding.
I wrote the following script, it works on python but not on sikuli.
Would you have any alternatives\workarounds?
Thanks!
from sikuli import*
import unittest
import os, sys
import subprocess
os.environ["MyApp"] = 'M:\\MyPath\\MyApp.exe'
os.environ["PATH"] = os.environ["PATH"] + ';M:\\MyPath\\'
subprocess.call(['MyApp'])
Using:
Sikuli 1.0.1
OS: Windows 8.1 64 bit
To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1303904/+subscriptions
References