Skip to content

Instantly share code, notes, and snippets.

@nolochemical
Created October 19, 2011 09:53
Show Gist options
  • Save nolochemical/1297869 to your computer and use it in GitHub Desktop.
Save nolochemical/1297869 to your computer and use it in GitHub Desktop.
SimpleJson CRUD 2
#! /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