mailr27981 - /trunk/devel_scripts/find_unused_imports.py


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by edward on October 05, 2015 - 11:36:
Author: bugman
Date: Mon Oct  5 11:36:03 2015
New Revision: 27981

URL: http://svn.gna.org/viewcvs/relax?rev=27981&view=rev
Log:
A directory can now be supplied on the command line for the 
find_unused_imports.py devel script.


Modified:
    trunk/devel_scripts/find_unused_imports.py

Modified: trunk/devel_scripts/find_unused_imports.py
URL: 
http://svn.gna.org/viewcvs/relax/trunk/devel_scripts/find_unused_imports.py?rev=27981&r1=27980&r2=27981&view=diff
==============================================================================
--- trunk/devel_scripts/find_unused_imports.py  (original)
+++ trunk/devel_scripts/find_unused_imports.py  Mon Oct  5 11:36:03 2015
@@ -62,8 +62,14 @@
 }
 
 
+# The directory to use.
+if len(sys.argv) == 2:
+    directory = sys.argv[1]
+else:
+    directory = getcwd()
+
 # Walk through the current dir.
-for root, dirs, files in walk(getcwd()):
+for root, dirs, files in walk(directory):
     # Skip SVN directories.
     if search("svn", root):
         continue




Related Messages


Powered by MHonArc, Updated Mon Oct 05 11:40:09 2015