sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #23157
[Bug 1238197] Re: [1.0.1] Windows8: App.open() does not work sometimes --- workaround: use run()
** Changed in: sikuli
Milestone: 1.1.0 => 1.2.0
--
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/1238197
Title:
[1.0.1] Windows8: App.open() does not work sometimes --- workaround:
use run()
Status in Sikuli:
In Progress
Bug description:
******** workaround
you might use the run(cmd) instead of App.open()
--- Windows
result = run('start /i /b "%s"'%(app))
--- Mac
result = run('open "%s"'%(app))
--- Linux
??? (use a similar command to run something in an independent process)
result contains the textual output, that would be seen if you run the command on commadline
the first line might contain
*** error ***
if the trial to run the command returned an error (e.g. program not found)
on the Java level (might change in the future!)
import org.Sikuli.basics.SikuliScript
.....
String result = SikuliScript.run(" ... some command ... ");
-----------------------------------------------------------------------------
I have Sikuli R930 installed on Windows 8 Enterprise x64 currently.
I have a script that installs software and it is not seeming to work
properly.
I have 2 App open commands and one works fine and the other just never
works.
the one that works fine is this:
Settings.tscode = App(os.path.join(r"\\tsarchive", "Storage",
"Timeslips", "Installations", Settings.tsVersion, "utilities",
"TSCodes.exe"))
When this is called it opens a code generator application no problem
The one that does not work is this:
Settings.tssetup = App(os.path.join(r"\\tsarchive", "Storage",
"Timeslips", "Installations", Settings.tsVersion, Settings.tsBuild,
"setup.exe"))
It never opens and says App not found.
Same exact script works perfectly on Windows 7 Pro x64
even if I dumb the APP open command to this:
tssetup = App(r'"c:\BUILD\Setup.exe"')
and call tssetup.open()
it says App not found.
If i dumb down the App that does work TSCODE to this:
TSCode = App(r'"c:\BUILD\TSCode.exe"')
Retested all above with latest V1.01 with same results.
To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1238197/+subscriptions
References