Open browser in python script without using full system path

Asked by Max

Hi!

On Windows, I'm trying to open a browser (e.g., chrome) through python sikuli script without using its system path since a priori I don't know the right path on different machines and OS versions.

I tried the following codes:

--->
someApp = App("Firefox")
someApp.open()

--->
App.open("firefox")

None is working, only the full path
=> App.open("C:\\Program Files (x86)\\Mozilla Firefox\\firefox.exe")
=> App.open("C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe")

Is there a way to do it?
Thank you!

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
RaiMan
Solved:
Last query:
Last reply:
Revision history for this message
Best RaiMan (raimund-hocke) said :
#1

not a feature, sorry.

You have to find out the path yourself somehow.

Revision history for this message
Max (max883) said :
#2

ok!

Thanks :)

Revision history for this message
Max (max883) said :
#3

Thanks RaiMan, that solved my question.