MEMFS: Logging

This commit is contained in:
Shahram Najm 2018-03-16 16:51:58 +00:00
parent e8e757b680
commit ef08d6c812
1 changed files with 4 additions and 2 deletions

View File

@ -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)