Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Updated code to read config file in json format.

  • Loading branch information...
commit ea5f14ea8ce526967806528a811ed7c10c0957be 1 parent 215f3b1
@jaredbischof authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 mcp_modules/subsystem.py
View
6 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
Please sign in to comment.
Something went wrong with that request. Please try again.