← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #258479]: Curious problem while opening app using ini file

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
no idea, you either have to ask the with statement or the configparser
;-)

I do not see the need for the with nor for the intermediates:

  config.readfp(open(os.path.join(getBundlePath(),'config.ini')))
  myAppPath = config.get('AppPath','Path')

I generally distrust the with statement ;-)

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.