File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
src/py-opentimelineio/opentimelineio Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -65,17 +65,17 @@ def filepath_from_url(urlstr):
65
65
if PureWindowsPath (parsed_result .netloc ).drive :
66
66
filepath = Path (parsed_result .netloc + parsed_result .path )
67
67
68
- # Check if the specified index is a windows drive, if it is then do nothing
69
- elif PureWindowsPath ( filepath . parts [ 0 ]) .drive :
68
+ # Check if the specified index has a specified ` drive` , if so then do nothing
69
+ elif filepath .drive :
70
70
filepath = filepath
71
71
72
72
# Check if the specified index is a windows drive, then offset the path
73
73
elif PureWindowsPath (filepath .parts [1 ]).drive :
74
74
# Remove leading "/" if/when `request.url2pathname` yields "/S:/path/file.ext"
75
75
filepath = filepath .relative_to (filepath .root )
76
76
77
- # Last resort, if using a "file" schema, then strip the "file:" prefix
78
- elif parsed_result . scheme == 'file' :
77
+ # Last resort, strip the "file:" prefix
78
+ else :
79
79
filepath = Path (decoded_url_str .strip ('file:' ))
80
80
81
81
# Convert "\" to "/" if needed
You can’t perform that action at this time.
0 commit comments