sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #25183
[Bug 1303904] [NEW] Unable to run .exe file setting environment variables
Public bug reported:
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
** Affects: sikuli
Importance: Undecided
Status: New
--
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:
Unable to run .exe file setting environment variables
Status in Sikuli:
New
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
Follow ups
References