Skip to content

Commit

Permalink
Add missing settings file
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanW2 committed Mar 24, 2014
1 parent 86a5f55 commit 03caa49
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/configmanager/settings.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import roam.yaml as yaml
settings = {}

def load(path):
with open(path, 'r') as f:
global settings
settings = yaml.load(f)

def save(path):
with open(path, 'w') as f:
yaml.dump(data=settings, stream=f, default_flow_style=False)

0 comments on commit 03caa49

Please sign in to comment.