From 2c4cc3596cbca553f52a77d55270aea9925814d9 Mon Sep 17 00:00:00 2001 From: Diane Trout Date: Thu, 8 Mar 2012 11:00:45 -0800 Subject: [PATCH] Actually if I provide an output file, I want to write to the file (forgot a not in the test for an output filename) --- htsworkflow/pipelines/desplit_fastq.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htsworkflow/pipelines/desplit_fastq.py b/htsworkflow/pipelines/desplit_fastq.py index 85ad586..0624aaa 100644 --- a/htsworkflow/pipelines/desplit_fastq.py +++ b/htsworkflow/pipelines/desplit_fastq.py @@ -28,7 +28,7 @@ def main(cmdline=None): print (version()) return 0 - if opts.output is None: + if opts.output is not None: output = open(opts.output, 'w') else: output = sys.stdout -- 2.30.2