aws.py
import ConfigParser
inifile = ConfigParser.SafeConfigParser()
inifile.read("./config.ini")
aws_access_key_id = unicode(inifile.get("aws","access_key_id"))
aws_secret_access_key = unicode(inifile.get("aws","secret_access_key"))
config.ini
[aws]
access_key_id = xxxxxxxx
secret_access_key = yyyyyyyy
Recommended Posts