Sikuli App.open(FFpath) using external file wont work need help
Asked by
Ninja Mustang
Hi,
my config.txt file, first line has the path to Firefox
c:\\program files (x86)\\mozilla firefox\
Sikuli IDE
# read configure file
myURL = []
URLlist = open('c:
for site in URLlist:
myURL.
URLlist.close()
# open Firefox
FFPath = myURL[0]
print FFPath
FFApp = App.open(FFPath)
wait(2)
It will fail open that firefox path
However, if I just make an array as below, it opens fine.
firefoxPath = ['c:\\program files (x86)\\mozilla firefox\
FFPath = firefoxPath[0]
Can someone let me know how can I make it work from a config.txt file? Thx!
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:
To post a message you must log in.