From: Diane Trout Date: Wed, 1 Dec 2010 00:15:43 +0000 (-0800) Subject: Add a new ini-file option to point to the flowcell repository. X-Git-Tag: 0.5.0~6 X-Git-Url: http://woldlab.caltech.edu/gitweb/?p=htsworkflow.git;a=commitdiff_plain;h=47fba796a6ed8737b958c31b0487cc02f54ec4df Add a new ini-file option to point to the flowcell repository. It's in the [frontend] section called "results_dir". --- diff --git a/htsworkflow/frontend/settings.py b/htsworkflow/frontend/settings.py index 15b84f0..95db12b 100644 --- a/htsworkflow/frontend/settings.py +++ b/htsworkflow/frontend/settings.py @@ -200,7 +200,10 @@ options_to_dict(ALLOWED_ANALYS_IPS, 'allowed_analysis_hosts') #UPLOADTO_CONFIG_FILE = os.path.join(UPLOADTO_HOME, 'eland_config') #UPLOADTO_ELAND_RESULT_PACKS = os.path.join(UPLOADTO_HOME, 'eland_results') #UPLOADTO_BED_PACKS = os.path.join(UPLOADTO_HOME, 'bed_packs') -RESULT_HOME_DIR=os.path.expanduser('~/proj/solexa/results/flowcells') +if options.has_option('frontend', 'results_dir'): + RESULT_HOME_DIR=os.path.expanduser(options.get('frontend', 'results_dir')) +else: + RESULT_HOME_DIR='/tmp' LINK_FLOWCELL_STORAGE_DEVICE_URL = options.get('frontend', 'link_flowcell_storage_device_url') # PORT 9100 is default for Zebra tabletop/desktop printers