Skip to content

Commit

Permalink
get & save the user configurable part from a configuration file
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Fiers committed Oct 23, 2012
1 parent f9b6ee9 commit 8d7f63e
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions lib/python/moa/sysConf.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,21 @@ def __init__(self):
else:
lri = 1

def getUser(self):
"""
Get a Yaco representation of the user configuration file
"""
rv = Yaco.Yaco()
if os.path.exists(USERCONFIGFILE):
rv.load(USERCONFIGFILE)
return rv

def saveUser(self, conf):
"""
Save the conf Yaco object as the user config
"""
conf.save(USERCONFIGFILE)

def getVersion(self):
"""
Return the version number of this Moa instance
Expand Down

0 comments on commit 8d7f63e

Please sign in to comment.