Commit 3a0302fd authored by Samuel GAIST's avatar Samuel GAIST
Browse files

[schema] Fix loading json from binary file

parent aef1f9ec
......@@ -85,7 +85,8 @@ def load_schema(schema_name, version=1):
os.path.join(schema_name, '%d.json' % version))
with open(fname, 'rb') as f:
schema = simplejson.load(f)
data ="utf-8")
schema = simplejson.loads(data)
basedir = os.path.realpath(os.path.dirname(fname))
resolver = jsonschema.RefResolver('file://' + basedir + '/', schema)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment