Check that path starts with file://, not file:///

Because file:/// is not a thing on Windows.
This commit is contained in:
Kitsune Ral 2018-07-29 12:25:11 +09:00
parent 2c9f00d37a
commit d17ec7f184

View file

@ -126,7 +126,7 @@ def resolve_references(path, schema):
def load_file(path):
print("Loading reference: %s" % path)
if not path.startswith("file:///"):
if not path.startswith("file://"):
raise Exception("Bad ref: %s" % (path,))
path = path[len("file://"):]
with open(path, "r") as f: