1
0
mirror of https://github.com/gsi-upm/senpy synced 2024-09-28 17:01:43 +00:00

Substituted json with yaml

This commit is contained in:
J. Fernando Sánchez 2016-05-06 11:46:20 +02:00
parent 16ce767d09
commit 1e7ae13700
2 changed files with 3 additions and 2 deletions

View File

@ -9,3 +9,4 @@ six
future future
jsonschema jsonschema
jsonref jsonref
PyYAML

View File

@ -22,7 +22,7 @@ import imp
import logging import logging
import traceback import traceback
import gevent import gevent
import json import yaml
logger = logging.getLogger(__name__) logger = logging.getLogger(__name__)
@ -203,7 +203,7 @@ class Senpy(object):
logger.debug("Loading plugin: {}".format(filename)) logger.debug("Loading plugin: {}".format(filename))
fpath = os.path.join(root, filename) fpath = os.path.join(root, filename)
with open(fpath, 'r') as f: with open(fpath, 'r') as f:
info = json.load(f) info = yaml.load(f)
logger.debug("Info: {}".format(info)) logger.debug("Info: {}".format(info))
sys.path.append(root) sys.path.append(root)
module = info["module"] module = info["module"]