Commit b8c1c3d2 authored by John Douglas Veitch's avatar John Douglas Veitch 💬
Browse files

lalinference_pipe: Set default --run-path to be $PWD if not given

Original: 86ea87020b48edd1772e3ee75c8290c0988dafce
parent 56fe4a07
......@@ -60,8 +60,8 @@ 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)
print 'Warning: No --run-path specified, using %s'%(os.getcwd())
cp.set('paths','basedir',os.path.abspath(os.getcwd()))
if opts.daglog_path is not None:
cp.set('paths','daglogdir',os.path.abspath(opts.daglog_path))
......
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