From 1e7ae137003d23c4090a5ccab600d7bcec1e692a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=2E=20Fernando=20S=C3=A1nchez?= Date: Fri, 6 May 2016 11:46:20 +0200 Subject: [PATCH] Substituted json with yaml --- requirements.txt | 1 + senpy/extensions.py | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/requirements.txt b/requirements.txt index 3867eb5..e8d2f7b 100644 --- a/requirements.txt +++ b/requirements.txt @@ -9,3 +9,4 @@ six future jsonschema jsonref +PyYAML diff --git a/senpy/extensions.py b/senpy/extensions.py index 62e77e3..987928f 100644 --- a/senpy/extensions.py +++ b/senpy/extensions.py @@ -22,7 +22,7 @@ import imp import logging import traceback import gevent -import json +import yaml logger = logging.getLogger(__name__) @@ -203,7 +203,7 @@ class Senpy(object): logger.debug("Loading plugin: {}".format(filename)) fpath = os.path.join(root, filename) with open(fpath, 'r') as f: - info = json.load(f) + info = yaml.load(f) logger.debug("Info: {}".format(info)) sys.path.append(root) module = info["module"]