Skip to content

Commit 9064807

Browse files
authored
Merge pull request #12 from svart-riddare/windows-compatibility
Windows compatibility
2 parents ab9beb5 + 4a8e94e commit 9064807

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

openapi_spec_validator/schemas.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import os
33

44
from pkg_resources import resource_filename
5-
from six.moves.urllib import parse
5+
from six.moves.urllib import parse, request
66
from yaml import safe_load
77

88

@@ -11,7 +11,7 @@ def get_openapi_schema(version):
1111
path_resource = resource_filename('openapi_spec_validator', path)
1212
path_full = os.path.join(os.path.dirname(__file__), path_resource)
1313
schema = read_yaml_file(path_full)
14-
schema_url = parse.urljoin('file:', path_full)
14+
schema_url = parse.urljoin('file:', request.pathname2url(path_full))
1515
return schema, schema_url
1616

1717

0 commit comments

Comments
 (0)