Skip to content

Commit 386b211

Browse files
committed
adding comment to explain the need to skip Windows Drive letters considered as scheme otherwise
1 parent 575f062 commit 386b211

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cwltool/load_tool.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ def fetch_document(argsworkflow, # type: Union[Text, Dict[Text, Any]]
4848
workflowobj = None # type: CommentedMap
4949
if isinstance(argsworkflow, string_types):
5050
split = urllib.parse.urlsplit(argsworkflow)
51+
# In case of Windows path, urlsplit misjudge Drive letters as scheme, here we are skipping that
5152
if split.scheme and split.scheme in [u'http',u'https',u'file']:
5253
uri = argsworkflow
5354
elif os.path.exists(os.path.abspath(argsworkflow)):

0 commit comments

Comments
 (0)