← Back to team overview

sikuli-driver team mailing list archive

[Bug 1303904] Re: Unable to run .exe file setting environment variables

 

** Changed in: sikuli
       Status: New => Incomplete

-- 
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:
  Incomplete

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