Actually if I provide an output file, I want to write to the file
[htsworkflow.git] / htsworkflow / pipelines / desplit_fastq.py
index 85ad586691473b1e993e126c1a329bd99f4689b3..0624aaa290a170a57593d85f07b0b642a1743e46 100644 (file)
@@ -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