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

cfbolz at codespeak.net cfbolz at codespeak.net
Tue Aug 2 20:48:46 CEST 2005


Author: cfbolz
Date: Tue Aug  2 20:48:42 2005
New Revision: 15523

Modified:
   py/dist/py/bin/py.cleanup
Log:
changed py.cleanup to allow to specify a path where the cleanup should
start.


Modified: py/dist/py/bin/py.cleanup
==============================================================================
--- py/dist/py/bin/py.cleanup	(original)
+++ py/dist/py/bin/py.cleanup	Tue Aug  2 20:48:42 2005
@@ -3,5 +3,10 @@
 from _findpy import py 
 import py
 
-for x in py.path.local().visit('*.pyc', py.path.checker(dotfile=0)): 
+if len(py.std.sys.argv) > 1:
+    path = py.path.local(py.std.sys.argv[1])
+else:
+    path = py.path.local()
+print "cleaning path", path
+for x in path.visit('*.pyc', py.path.checker(dotfile=0)): 
     x.remove()



More information about the pytest-commit mailing list