mirror of https://github.com/ecmwf/eccodes.git
MEMFS: Logging
This commit is contained in:
parent
e8e757b680
commit
ef08d6c812
6
memfs.py
6
memfs.py
|
@ -24,8 +24,9 @@ except:
|
|||
ascii = lambda x: str(x) # Python 2
|
||||
|
||||
|
||||
# The last argument is the generated C file
|
||||
g = open(sys.argv[-1], "w")
|
||||
# The last argument is the path of the generated C file
|
||||
output_file_path = sys.argv[-1]
|
||||
g = open(output_file_path, "w")
|
||||
|
||||
for directory in dirs:
|
||||
|
||||
|
@ -203,3 +204,4 @@ FILE* codes_memfs_open(const char* path) {
|
|||
}
|
||||
|
||||
""", file=g)
|
||||
print ('Created ',output_file_path)
|
||||
|
|
Loading…
Reference in New Issue