Commit db6a52e3 authored by John Douglas Veitch's avatar John Douglas Veitch
Browse files

lalinference_pipe.py: Add check for --run-path option

Original: a5c74851763a72a662e60823abecb2dc5ef2b5b5
parent 4ebc02b6
......@@ -54,6 +54,10 @@ cp.readfp(open(inifile))
if opts.run_path is not None:
cp.set('paths','basedir',os.path.abspath(opts.run_path))
if not cp.has_option('paths','basedir'):
print 'Error: Must specify a directory with --run-path DIR'
sys.exit(1)
if opts.daglog_path is not None:
cp.set('paths','daglogdir',os.path.abspath(opts.daglog_path))
elif opts.run_path is not None:
......
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