Commit cab255b6 authored by Jim Fulton's avatar Jim Fulton

Fixed pyc cleanup for python 3.2.

parent 6bc23d58
...@@ -99,9 +99,11 @@ def clean_up_pyc(*path): ...@@ -99,9 +99,11 @@ def clean_up_pyc(*path):
filename += 'c' # .py -> .pyc filename += 'c' # .py -> .pyc
for path in ( for path in (
os.path.join(base, filename), os.path.join(base, filename),
os.path.join(base, '__pycache__', filename), os.path.join(base, '__pycache__'),
): ):
if os.path.exists(path): if os.path.isdir(path):
rmdir(path)
elif os.path.exists(path):
remove(path) remove(path)
## FIXME - check for other platforms ## FIXME - check for other platforms
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment