Don't create test path if it already exists
parent
476d3386d4
commit
a11d9aca1a
|
@ -236,6 +236,7 @@ if __name__ == '__main__':
|
|||
|
||||
# Get camera type
|
||||
camera_type = cfg.get('Camera', 'camera_type')
|
||||
print(camera_type)
|
||||
|
||||
# Current time
|
||||
tnow = Time.now()
|
||||
|
@ -248,6 +249,7 @@ if __name__ == '__main__':
|
|||
path = os.path.join(cfg.get('Common', 'observations_path'), "acquire_test")
|
||||
else:
|
||||
path = os.path.join(cfg.get('Common', 'observations_path'), obsid)
|
||||
if not os.path.exists(path):
|
||||
os.makedirs(path)
|
||||
|
||||
# Setup logging
|
||||
|
|
Loading…
Reference in New Issue