mirror of https://github.com/ecmwf/eccodes.git
ECC-917: clean up
This commit is contained in:
parent
a8f3f8c991
commit
87388625e7
12
memfs.py
12
memfs.py
|
@ -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')
|
||||||
|
|
Loading…
Reference in New Issue