1 # Remove all the .pyc and .pyo files under ../Lib.
3 from __future__
import nested_scopes
13 for short
in os
.listdir(dir):
14 full
= os
.path
.join(dir, short
)
15 if os
.path
.isdir(full
):
17 elif short
.endswith(".pyc"):
20 elif short
.endswith(".pyo"):
25 npyc
, npyo
= deltree("../Lib")
26 print npyc
, ".pyc deleted,", npyo
, ".pyo deleted"