Add a new ini-file option to point to the flowcell repository.
authorDiane Trout <diane@caltech.edu>
Wed, 1 Dec 2010 00:15:43 +0000 (16:15 -0800)
committerDiane Trout <diane@caltech.edu>
Wed, 1 Dec 2010 00:15:43 +0000 (16:15 -0800)
It's in the [frontend] section called "results_dir".

htsworkflow/frontend/settings.py

index 15b84f0dc05c106038f2cb21d465951864b6fbbc..95db12b702923ceb11426419b3cf1a64ebfa3440 100644 (file)
@@ -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