Skip to content

Instantly share code, notes, and snippets.

@ialexi
Created November 23, 2009 20:59
Show Gist options
  • Select an option

  • Save ialexi/241369 to your computer and use it in GitHub Desktop.

Select an option

Save ialexi/241369 to your computer and use it in GitHub Desktop.
config_path = os.path.join(set_path, "config.json")
if os.path.exists(config_path):
try:
print "About to open file"
config_file = open(config_path)
print "About to read file"
config_content = config_file.read()
print "File content: "
print config_content
config.update(json.loads(config_content))
except:
print "Could not load config file. Proceeding anyway. What's the worst tha"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment