Skip to content

Commit

Permalink
Fix construction of cwltool command line
Browse files Browse the repository at this point in the history
  • Loading branch information
pvanheus committed Oct 26, 2022
1 parent 8235a35 commit b0adeb8
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lukasa.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

import argparse
import json
Expand Down Expand Up @@ -92,7 +92,10 @@ def is_fasta(input_filename):
debug = "--debug"
else:
debug = ""
cwl_commandline = ["cwltool", "--no-container", debug, workflow_file, cwl_input_file.name]
cwl_commandline = ["cwltool", "--no-container"]
if args.debug:
cwl_commandline += ['--debug']
cwl_commandline += [workflow_file, cwl_input_file.name]
workflow_output_str = subprocess.check_output(cwl_commandline)

os.unlink(cwl_input_file.name)
Expand Down

0 comments on commit b0adeb8

Please sign in to comment.