diff options
Diffstat (limited to 'PCbuild8/rmpyc.py')
-rw-r--r-- | PCbuild8/rmpyc.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/PCbuild8/rmpyc.py b/PCbuild8/rmpyc.py index 43c8576..c3410f8 100644 --- a/PCbuild8/rmpyc.py +++ b/PCbuild8/rmpyc.py @@ -1,4 +1,5 @@ # Remove all the .pyc and .pyo files under ../Lib. +import sys def deltree(root): @@ -21,5 +22,9 @@ def deltree(root): return npyc, npyo -npyc, npyo = deltree("../Lib") +path = "../Lib" +if len(sys.argv) > 1: + path = sys.argv[1] + +npyc, npyo = deltree(path) print npyc, ".pyc deleted,", npyo, ".pyo deleted" |