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
_______________________________________________
relax (http://www.nmr-relax.com)
This is the relax-commits mailing list
[email protected]
To unsubscribe from this list, get a password
reminder, or change your subscription options,
visit the list information page at
https://mail.gna.org/listinfo/relax-commits