mirror of
https://github.com/gsi-upm/senpy
synced 2024-11-22 00:02:28 +00:00
Substituted json with yaml
This commit is contained in:
parent
16ce767d09
commit
1e7ae13700
@ -9,3 +9,4 @@ six
|
|||||||
future
|
future
|
||||||
jsonschema
|
jsonschema
|
||||||
jsonref
|
jsonref
|
||||||
|
PyYAML
|
||||||
|
@ -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"]
|
||||||
|
Loading…
Reference in New Issue
Block a user