1 # Remove all the .pyc and .pyo files under ../Lib.
11 for short
in os
.listdir(dir):
12 full
= os
.path
.join(dir, short
)
13 if os
.path
.isdir(full
):
15 elif short
.endswith(".pyc"):
18 elif short
.endswith(".pyo"):
23 npyc
, npyo
= deltree("../Lib")
24 print npyc
, ".pyc deleted,", npyo
, ".pyo deleted"