tools/make-frozen.py: Allow to run with no directory passed in.
In which case it will just emit empty frozen C definitions.pull/1/head
parent
8f7f671236
commit
8e8cfa6f53
|
@ -27,10 +27,11 @@ def module_name(f):
|
||||||
|
|
||||||
modules = []
|
modules = []
|
||||||
|
|
||||||
root = sys.argv[1].rstrip("/")
|
if len(sys.argv) > 1:
|
||||||
root_len = len(root)
|
root = sys.argv[1].rstrip("/")
|
||||||
|
root_len = len(root)
|
||||||
|
|
||||||
for dirpath, dirnames, filenames in os.walk(root):
|
for dirpath, dirnames, filenames in os.walk(root):
|
||||||
for f in filenames:
|
for f in filenames:
|
||||||
fullpath = dirpath + "/" + f
|
fullpath = dirpath + "/" + f
|
||||||
st = os.stat(fullpath)
|
st = os.stat(fullpath)
|
||||||
|
|
Loading…
Reference in New Issue