projects
/
python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a6db44f
)
Remove .pyo files too.
author
Jack Jansen
<jack.jansen@cwi.nl>
Fri, 6 Sep 2002 20:23:09 +0000
(20:23 +0000)
committer
Jack Jansen
<jack.jansen@cwi.nl>
Fri, 6 Sep 2002 20:23:09 +0000
(20:23 +0000)
Mac/scripts/zappycfiles.py
patch
|
blob
|
history
diff --git
a/Mac/scripts/zappycfiles.py
b/Mac/scripts/zappycfiles.py
index 22a021cab2ffa3369afc1433d0eb2286576b7c98..dcd41334c6758d2a832bb012b81e8a4b8d01359b 100644
(file)
--- a/
Mac/scripts/zappycfiles.py
+++ b/
Mac/scripts/zappycfiles.py
@@
-1,5
+1,5
@@
#!/usr/local/bin/python
-"""Recursively zap all .pyc files"""
+"""Recursively zap all .pyc
and .pyo
files"""
import os
import sys
@@
-27,7
+27,7
@@
def zappyc(dir):
def walker(dummy, top, names):
for name in names:
- if name[-4:]
== '.pyc'
:
+ if name[-4:]
in ('.pyc', '.pyo')
:
path = os.path.join(top, name)
print 'Zapping', path
if doit: