sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #29511
[Question #258479]: Curious problem while opening app using ini file
New question #258479 on Sikuli:
https://answers.launchpad.net/sikuli/+question/258479
config.ini content:
;========================
[AppPath]
Path = "C:\\Program Files\\myAwesomeApp\\myAwesomeApp.exe"
;========================
Script content:
#==================================================
myApp = "My Awesome App"
def FunAppPath():
config = ConfigParser.ConfigParser()
myFilePath = os.path.join(getBundlePath(),'config.ini')
with open(myFilePath,'r') as configfile:
config.readfp(configfile)
myAppPath = config.get('AppPath','Path')
return myAppPath
def appLaunch():
if not myApp.window():
App.open(FunAppPath())
appLaunch()
#==================================================
For some reason this is copying various files from "C:\\Program Files\\myAwesomeApp\\" into the script folder. No idea why.
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.