summaryrefslogtreecommitdiff
path: root/dotbot
diff options
context:
space:
mode:
authorAnish Athalye <me@anishathalye.com>2014-10-27 20:04:00 -0400
committerAnish Athalye <me@anishathalye.com>2014-10-27 20:31:40 -0400
commit33d602bb9304b2daf54a5754f5fb51cfcad350dc (patch)
tree98209eed7081309a14612d4be5c244cc2d3257d5 /dotbot
parentafebc0bb2fe817778f77d0fcfe30e508bf15d441 (diff)
Add YAML support
Add support for YAML format configuration files. In addition, this commit adds instructions about YAML config files to the README, and it also changes the README to encourage use of YAML instead of JSON.
Diffstat (limited to 'dotbot')
-rw-r--r--dotbot/config.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/dotbot/config.py b/dotbot/config.py
index 79b735c..49252d8 100644
--- a/dotbot/config.py
+++ b/dotbot/config.py
@@ -1,4 +1,4 @@
-import json
+import yaml
class ConfigReader(object):
def __init__(self, config_file_path):
@@ -7,7 +7,7 @@ class ConfigReader(object):
def _read(self, config_file_path):
try:
with open(config_file_path) as fin:
- data = json.load(fin)
+ data = yaml.load(fin)
return data
except Exception:
raise ReadingError('Could not read config file')