← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #184407]: Focus function call on Firefox app causes focus to be lost on app

 

Question #184407 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/184407

Bharathi A posted a new comment:
In my case - I need to find the path of firefox first.

For eg: In one PC - firefox.exe is located under program files and in
another pc firefox.exe is located under appdata folder.

I tried something like this but found to be not working:

import os
for r,d,f in os.walk("c:\\"):
    for files in f:
         if files == "firefox.exe":
             print os.path.join(r,files)                          
         else:
             print ("Not found")
             exit(1)

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.