Commit 801c2ac8 authored by Monica Rainer's avatar Monica Rainer
Browse files

Default creation of directory tree

parent f2e34d6c
......@@ -109,9 +109,9 @@ if docopt_args['<calib_date>']:
#print docopt_args
print CONFIG['DATE']
print CONFIG['DO_CALIB']
print CONFIG['USE_FLAT']
#print CONFIG['DATE']
#print CONFIG['DO_CALIB']
#print CONFIG['USE_FLAT']
# remove the mask with the order position (if it exists)
# it will be re-build with the correct flat-field
......@@ -121,6 +121,10 @@ except:
pass
# Create the reduction directory
try:
os.mkdir(CONFIG['BASE_RED_DIR'])
except OSError:
pass
if CONFIG['OFFLINE']:
try:
......@@ -140,13 +144,19 @@ except OSError:
pass
# Create the calibration directory
# Create the calibration directory tree
try:
os.mkdir(CONFIG['BASE_CALIB_DIR'])
except OSError:
pass
try:
os.mkdir(CONFIG['CALIB_DIR'])
except OSError:
pass
drslogger = DrsLogger()
# Databases online/offline
......
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