Permalink
Browse files

Updated code to read config file in json format.

  • Loading branch information...
jaredbischof committed Mar 18, 2013
1 parent 215f3b1 commit ea5f14ea8ce526967806528a811ed7c10c0957be
Showing with 3 additions and 3 deletions.
  1. +3 −3 mcp_modules/subsystem.py
View
@@ -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

0 comments on commit ea5f14e

Please sign in to comment.