App.open() won't throw exception?
I'm trying to right some code that will launch firefox on windows machines. On 64-bit windows, the path to firefox is "C:\Program Files (x86)\Mozilla Firefox\
So I wrote something like this:
path32 = "C:\\Program Files\\Mozilla Firefox\
path64 = "C:\\Program Files (x86)\\Mozilla Firefox\
try:
App.
except:
App.
When I run this on a 64-bit machine, sikuli reports an error when it attempts the try statement:
[error] App.open failed: C:\Program Files\Mozilla Firefox\firefox.exe not found.
However, it skips straight over the except statement and continues as if nothing had happened. Am I doing something wrong here? I'm sure I could use another approach to check the path before attempting to open, but it seems as if this approach should work as well.
Thank you for your time,
Paul
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: