Author: justi9
Date: 2008-04-19 12:12:04 -0400 (Sat, 19 Apr 2008)
New Revision: 1945
Added:
mgmt/bin/python-compile
Log:
A script to generate pyc files
Added: mgmt/bin/python-compile
===================================================================
--- mgmt/bin/python-compile (rev 0)
+++ mgmt/bin/python-compile 2008-04-19 16:12:04 UTC (rev 1945)
@@ -0,0 +1,9 @@
+#!/usr/bin/env python
+
+import sys, compileall, re
+
+if len(sys.argv) < 2:
+ print "Usage: %s PATH" % sys.argv[0]
+ sys.exit(1)
+
+compileall.compile_dir(sys.argv[1], rx=re.compile("/\.svn"), force=True)
Property changes on: mgmt/bin/python-compile
___________________________________________________________________
Name: svn:executable
+ *
Show replies by date