summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad Bishop <bradleyb@us.ibm.com>2016-10-11 08:36:02 -0400
committerBrad Bishop <bradleyb@us.ibm.com>2016-10-11 08:36:02 -0400
commit98f7613a879900682a427711bb93176254926da7 (patch)
treebb634adfd67aae3ed6b857caa4157a15d597ded0
parentc1e5e9ffb9df84c0f0fdb41e604d1738b6f9bc45 (diff)
downloadphosphor-settingsd-98f7613a879900682a427711bb93176254926da7.tar.gz
phosphor-settingsd-98f7613a879900682a427711bb93176254926da7.zip
remove parser
Replaced by setup.py Change-Id: Ieae39ed068329c0f234871a5bef1800ad4fc45e8 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
-rw-r--r--settings_parser.py21
1 files changed, 0 insertions, 21 deletions
diff --git a/settings_parser.py b/settings_parser.py
deleted file mode 100644
index 9e74f91..0000000
--- a/settings_parser.py
+++ /dev/null
@@ -1,21 +0,0 @@
-#!/usr/bin/python -u
-
-# Simple parser to create a python dictionary from a yaml file.
-# It saves the applications from doing the parsing and
-# adding dependencies to additional modules like yaml
-
-import yaml
-import pprint
-
-SETTINGS_FILE = 'settings.yaml'
-OUTPUT_FILE = 'settings_file.py'
-FILE_HEADER = '#!/usr/bin/python -u'
-
-with open(SETTINGS_FILE) as s:
- data = yaml.safe_load(s)
-
-with open(OUTPUT_FILE, 'w') as f:
- f.write(FILE_HEADER)
- f.write('\n')
- f.write('SETTINGS=\\\n')
- pprint.pprint(data, stream=f)
OpenPOWER on IntegriCloud