Created
November 23, 2009 20:59
-
-
Save ialexi/241369 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| 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