Skip to content
This repository was archived by the owner on Dec 10, 2018. It is now read-only.
This repository was archived by the owner on Dec 10, 2018. It is now read-only.

Confused with absulute path in windows #341

@kep-w

Description

@kep-w

https://github.com/eleme/thriftpy/blob/c49a3adf2c52948b5c1a01c3109c9676763095f0/thriftpy/parser/parser.py#L547

hi,
I am using the thriftpy in our project, our environment is Windows, and when i use thriftpy.load(path, ....) function. the question is if use relative path as the path argument, it will raise an IOError, told that do not have the file. But, if I change absulute path, after urlparse, the scheme is 'c'/'d'/'e', and the judgment here will not be matched. So why is the judgment here not changed to be able to adapt to the absolute path in windows?
My suggestion is:
elif len(url_scheme) <= 1:

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