File tree Expand file tree Collapse file tree 1 file changed +0
-9
lines changed
src/py-opentimelineio/opentimelineio Expand file tree Collapse file tree 1 file changed +0
-9
lines changed Original file line number Diff line number Diff line change @@ -68,10 +68,6 @@ def filepath_from_url(urlstr):
68
68
if PureWindowsPath (parsed_result .netloc ).drive :
69
69
filepath = PurePath (parsed_result .netloc + decoded_parsed_path )
70
70
71
- # Check if the specified index has a specified `drive`, if so then do nothing
72
- elif filepath .drive :
73
- filepath = filepath
74
-
75
71
# Check if the specified index is a windows drive, then offset the path
76
72
elif PureWindowsPath (filepath .parts [1 ]).drive :
77
73
# Remove leading "/" if/when `request.url2pathname` yields "/S:/path/file.ext"
@@ -86,9 +82,4 @@ def filepath_from_url(urlstr):
86
82
# Convert "\" to "/" if needed
87
83
path = filepath .as_posix ()
88
84
89
- # Since the previous code handles Windows drive letter, we can assume that any path
90
- # starting with a "/" is a UNC path if executed is run on Windows.
91
- if path .startswith ('/' ) and sys .platform == 'win32' :
92
- path = '/' + path
93
-
94
85
return path
You can’t perform that action at this time.
0 commit comments