Check that path starts with file://, not file:///
Because file:/// is not a thing on Windows.
This commit is contained in:
parent
2c9f00d37a
commit
d17ec7f184
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue