← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #681984]: Could SIkuli change some environment variables at runtine?

 

Question #681984 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/681984

RaiMan proposed the following answer:
ok, you can do that in a script:

try:
  import org.sikuli.natives.WinUtil as Windows
  path = Windows.getEnv("PATH") # get current path
  # manipulate the path string
  newPath = Windows.setEnv("PATH", changedPath) # change it
  if (newPathh == changedPath):
     pass #worked
except:
  pass # did not work

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.