From c0641981d64516a3c158c98f7242a3a29ef50f2e Mon Sep 17 00:00:00 2001 From: Diane Trout Date: Tue, 10 Nov 2009 02:06:30 +0000 Subject: [PATCH] Don't add the post_run_command unless the option and a runfolder are specified --- htsworkflow/pipelines/retrieve_config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htsworkflow/pipelines/retrieve_config.py b/htsworkflow/pipelines/retrieve_config.py index dd60f60..f9d4e3b 100644 --- a/htsworkflow/pipelines/retrieve_config.py +++ b/htsworkflow/pipelines/retrieve_config.py @@ -148,7 +148,7 @@ def format_gerald_config(options, flowcell_info, genome_map): config += ['%s:USE_BASES Y%s' % ( lane_prefix, read_length ) ] # add in option for running script after - if options.post_run is not None: + if not (options.post_run is None or options.runfolder is None): runfolder = os.path.abspath(options.runfolder) post_run = options.post_run % {'runfolder': runfolder} config += ['POST_RUN_COMMAND %s' % (post_run,) ] -- 2.30.2