1
0
mirror of https://github.com/gsi-upm/senpy synced 2024-12-22 13:08:13 +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
jsonschema
jsonref
PyYAML

View File

@ -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"]