ECC-917: clean up

This commit is contained in:
Shahram Najm 2020-04-16 12:06:19 +01:00
parent a8f3f8c991
commit 87388625e7
1 changed files with 7 additions and 5 deletions

View File

@ -102,14 +102,15 @@ for directory in dirs:
g.close() g.close()
fcount += 1 fcount += 1
opath = output_file_path + "_" + str(fcount).zfill(3) + ".c" opath = output_file_path + "_" + str(fcount).zfill(3) + ".c"
#print('....Now writing to ',opath) #print('Generating output: ', opath)
g = open(opath, "w") g = open(opath, "w")
totsize = 0 totsize = 0
g.close() g.close()
output_file_path = output_file_path + "_final.c" assert fcount == 2
#print('....Finally writing to ',output_file_path) opath = output_file_path + "_final.c"
g = open(output_file_path, "w") #print('Generating output: ', opath)
g = open(opath, "w")
print(""" print("""
#include "eccodes_config.h" #include "eccodes_config.h"
@ -291,4 +292,5 @@ FILE* codes_memfs_open(const char* path) {
} }
""", file=g) """, file=g)
print ('Created ',output_file_path)
print ('Finished')