remove verbose messages re excluded dirs
@@ -45,19 +45,19 @@ output_file_path = sys.argv[-1]
totsize = 0 # amount written
fcount = 0
opath = output_file_path + "_" + str(fcount).zfill(3) + ".c"
-print('Generating output: ', opath)
+print('MEMFS: Generating output: ', opath)
g = open(opath, "w")
for directory in dirs:
- # print("---->", directory)
+ # print("MEMFS: directory=", directory)
dname = os.path.basename(directory)
NAMES.append(dname)
for dirpath, dirnames, files in os.walk(directory, followlinks=True):
- for ex in EXCLUDED:
- if ex in dirnames:
- print('Note: eccodes memfs.py script: %s/%s will not be included.' % (dirpath,ex))
+ # for ex in EXCLUDED:
+ # if ex in dirnames:
+ # print('Note: eccodes memfs.py script: %s/%s will not be included.' % (dirpath,ex))
# Prune the walk by modifying the dirnames in-place
dirnames[:] = [dirname for dirname in dirnames if dirname not in EXCLUDED]
@@ -71,7 +71,7 @@ for directory in dirs:
totsize += fsize
full = full.replace("\\", "/")
fname = full[full.find("/%s/" % (dname,)):]
- #print("MEMFS add", fname)
+ #print("MEMFS: Add ", fname)
name = re.sub(r'\W', '_', fname)
assert name not in FILES
@@ -79,7 +79,7 @@ for directory in dirs:
FILES[name] = fname
SIZES[name] = fsize
- print('const unsigned char %s[] = {' % (name,), file=g) #NEW
+ print('const unsigned char %s[] = {' % (name,), file=g)
with open(full, 'rb') as f:
i = 0
@@ -103,14 +103,14 @@ for directory in dirs:
g.close()
fcount += 1
opath = output_file_path + "_" + str(fcount).zfill(3) + ".c"
- print('Generating output: ', opath)
+ print('MEMFS: Generating output: ', opath)
g = open(opath, "w")
totsize = 0
g.close()
assert fcount == 3
opath = output_file_path + "_final.c"
-print('Generating output: ', opath)
+print('MEMFS: Generating output: ', opath)
g = open(opath, "w")
print("""
