sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #16994
Re: [Question #223952]: Default path for App.open
Question #223952 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/223952
Status: Open => Answered
RaiMan proposed the following answer:
I just checked and tested again (Sikuli X-1.0 r930 Windows 7 32-Bit):
- using a command file test.cmd, that simply contains @echo %1; pause
- if the test.cmd is in a folder, that is in the Windows %PATH% (system -> environment), its is found and executed with simply using App.open("test.cmd")
- the content of the system path at script runtime can be verified using import os; print os.environ["PATH"]
- if the path or command name has blanks, App.open(' "test - Kopie.cmd" parameter') works
This behavior is like described in the above linked MS document about
CreateProcess.
So the fact, that the command is found in System32 (which is searched
before %PATH%), might tell us, that the folders containing your command
files are not in %PATH%
One more thing:
in Pythons sys.path only folders containing either .py files or .sikuli folders need be contained, since only these files are searched by import using sys.path. App.open() does not look in sys.opath, but simply hands the given string over to Windows runtime.
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.