Created
October 19, 2011 09:53
-
-
Save nolochemical/1297869 to your computer and use it in GitHub Desktop.
SimpleJson CRUD 2
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
#! /usr/bin/python2 | |
import ConfigParser | |
def save_profile(): | |
pfile = "profile.cfg" | |
''' | |
profile.cfg | |
['settings'] | |
clean_cache_close = 908 | |
''' | |
config = ConfigParser.RawConfigParser() | |
config.read(pfile) | |
print config.get('settings', 'clean_cache_close') | |
save_profile() | |
>>> 908 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment