Last active
September 5, 2017 07:14
-
-
Save suganoo/2f1dca13c04a846a7bc92ae42504d336 to your computer and use it in GitHub Desktop.
ConfigParserの使い方
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[common] | |
hogehoge_param = "fugafuga" | |
[aws] | |
aws_key = aaddffeessdgggg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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