[py-svn] r8212 - py/dist/py/bin

hpk at codespeak.net hpk at codespeak.net
Tue Jan 11 15:31:44 CET 2005


Author: hpk
Date: Tue Jan 11 15:31:44 2005
New Revision: 8212

Added:
   py/dist/py/bin/py.cleanup   (contents, props changed)
Log:
added another useful cmdline-tool:

    py.cleanup 

which erases all *.pyc files under the current working directory. 



Added: py/dist/py/bin/py.cleanup
==============================================================================
--- (empty file)
+++ py/dist/py/bin/py.cleanup	Tue Jan 11 15:31:44 2005
@@ -0,0 +1,7 @@
+#!/usr/bin/env python 
+
+from _findpy import py 
+import py
+
+for x in py.path.local().visit('*.pyc', py.path.checker(dotfile=0)): 
+    x.remove()



More information about the pytest-commit mailing list