File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -82,7 +82,8 @@ def main(argv=sys.argv[1:]):
82
82
return 0
83
83
84
84
loader = schema_salad .ref_resolver .Loader ({
85
- "location" : {"@type" : "@id" }
85
+ "location" : {"@type" : "@id" },
86
+ "path" : {"@type" : "@id" }
86
87
})
87
88
input , _ = loader .resolve_ref (args .job_order )
88
89
@@ -91,10 +92,13 @@ def main(argv=sys.argv[1:]):
91
92
def fixpaths (d ):
92
93
if isinstance (d , dict ):
93
94
if "path" in d :
94
- local_path = os .path .normpath (
95
- os .path .join (os .getcwd (), basedir , d ["path" ]))
95
+ if ":" not in d ["path" ]:
96
+ local_path = os .path .normpath (
97
+ os .path .join (os .getcwd (), basedir , d ["path" ]))
98
+ d ["location" ] = urllib .pathname2url (local_path )
99
+ else :
100
+ d ["location" ] = d ["path" ]
96
101
del d ["path" ]
97
- d ["location" ] = urllib .pathname2url (local_path )
98
102
if d .get ("class" ) == "Directory" :
99
103
loc = d .get ("location" , "" )
100
104
if loc .startswith ("http:" ) or loc .startswith ("https:" ):
You can’t perform that action at this time.
0 commit comments