Commit 4c5b5ea6 authored by John Douglas Veitch's avatar John Douglas Veitch
Browse files

lalinference_pipe: Write config file to web directory

Original: 1ee9606ea8fc8c88c5c1dda29a4b51b9f4086c96
parent a7bcce27
......@@ -550,9 +550,13 @@ class LALInferencePipelineDAG(pipeline.CondorDAG):
self.add_science_segments()
# Save the final configuration that is being used
# first to the run dir
conffilename=os.path.join(self.basepath,'config.ini')
with open(conffilename,'wb') as conffile:
self.config.write(conffile)
if self.config.has_option('paths','webdir'):
with open(os.path.join(self.config.get('paths','webdir'),'config.ini'),'wb') as conffile:
self.config.write(conffile)
# Generate the DAG according to the config given
for event in self.events: self.add_full_analysis(event)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment