Skip to content
Snippets Groups Projects
Commit 3069760a authored by Cain, Payton David's avatar Cain, Payton David
Browse files

Fixes issue 121

Verifies if the directory exists, if not a new directory is created to store the written file
parent b0177a07
No related branches found
No related tags found
No related merge requests found
......@@ -181,11 +181,9 @@ class GOESIMFV283Factory(IMFV283Factory):
buf.append('RETRANSMITTED: N\n')
buf.append('ASCENDING_TIME: false\n')
buf.append('RT_SETTLE_DELAY: true\n')
criteria_dir = os.path.dirname(criteria_file)
if not os.path.exists(criteria_dir):
os.makedirs(criteria_dir)
with open(criteria_file, 'wb') as fh:
fh.write(''.join(buf))
fh.close()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment