← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #204153]: How to provide user input to sikuli script from a file

 

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

Shafiq Khan posted a new comment:
def UserName():        
    config = ConfigParser.ConfigParser()    
    myFilePath = os.path.join(getBundlePath(),'settings.ini')
    print "My config file is located at: " + myFilePath

    with open(myFilePath,'r') as configfile:       
        config.readfp(configfile)
        return config.get('user1','user')

print UserName()

Now, on to encrypting password on config file...

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