Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
ConfigParserの使い方
[common]
hogehoge_param = "fugafuga"
[aws]
aws_key = aaddffeessdgggg
import ConfigParser
inifile = ConfigParser.SafeConfigParser()
inifile.read("xxxxxx/config.ini")
param = inifile.get("common", "hogehoge_param")
aws_key_id = inifile.get("aws","aws_key")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.