Skip to content

_uri_to_path produces erroneous result on windows #2109

@UllrichMartini

Description

@UllrichMartini

referring to json_shema.py, line 45 ff:

calling
_uri_to_path('./schema.xml')
produces on window the filepath
'\\\.\schema.yaml'
which does not work

in my case, I fix it as

    # host = "{0}{0}{mnt}{0}".format(os.path.sep, mnt=parsed.netloc)
    host = parsed.netloc

if uri_to_path is called with a file reference the formatting "{0}{0}{mnt}{0}".format(os.path.sep, mnt=parsed.netloc) does not make sense

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions