From ef08d6c812885e2cdcc940dd587144cf754f675c Mon Sep 17 00:00:00 2001 From: Shahram Najm Date: Fri, 16 Mar 2018 16:51:58 +0000 Subject: [PATCH] MEMFS: Logging --- memfs.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/memfs.py b/memfs.py index c07e4965c..784d09e22 100755 --- a/memfs.py +++ b/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)