We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e2a05df commit db787f1Copy full SHA for db787f1
cwlupgrader/main.py
@@ -195,12 +195,14 @@ def process_imports(
195
if isinstance(document, CommentedMap):
196
for key, value in document.items():
197
if key == "$import":
198
- if value not in imports:
+ if value not in imports and not value.startswith("#"):
199
+ with SourceLine(document, key, Exception):
200
+ import_doc = load_cwl_document(
201
+ Path(document.lc.filename).parent / value
202
+ )
203
write_cwl_document(
204
updater(
- load_cwl_document(
- Path(document.lc.filename).parent / value
- ),
205
+ import_doc,
206
outdir,
207
),
208
Path(value).name,
0 commit comments