Skip to content

Commit

Permalink
Updated code to read config file in json format.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredbischof committed Mar 18, 2013
1 parent 215f3b1 commit ea5f14e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mcp_modules/subsystem.py
@@ -1,12 +1,12 @@
import json
import shlex, subprocess
from ConfigParser import SafeConfigParser

class subsystem (object):
def __init__(self, MCP_dir):
self.MCP_dir = MCP_dir
self.state = {}
self.parser = SafeConfigParser()
self.parser.read(self.MCP_dir+'conf/conf.ini')
json_conf_file = open(self.MCP_dir+'conf/conf.json')
self.json_conf = json.load(json_conf_file)

def get_state(self):
return self.state
Expand Down

0 comments on commit ea5f14e

Please sign in to comment.