Open browser in python script without using full system path

Asked by Max on 2017-11-28

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:
Sikuli Edit question
Assignee:
No assignee Edit question
Solved by:
RaiMan
Solved:
2017-11-28
Last query:
2017-11-28
Last reply:
2017-11-28
Best RaiMan (raimund-hocke) said : #1

not a feature, sorry.

You have to find out the path yourself somehow.

Max (max883) said : #2

ok!

Thanks :)

Max (max883) said : #3

Thanks RaiMan, that solved my question.