Use fixed directory for test runs

pull/19/head
Cees Bassa 2019-07-12 15:11:28 +02:00
parent eb32545373
commit 476d3386d4
1 changed files with 4 additions and 1 deletions

View File

@ -244,7 +244,10 @@ if __name__ == '__main__':
obsid = time.strftime("%Y%m%d_%H%M%S", time.gmtime())+"_%d" % devid
# Generate directory
path = os.path.join(cfg.get('Common', 'observations_path'), obsid)
if testing:
path = os.path.join(cfg.get('Common', 'observations_path'), "acquire_test")
else:
path = os.path.join(cfg.get('Common', 'observations_path'), obsid)
os.makedirs(path)
# Setup logging