Author: bugman Date: Fri Feb 7 18:18:06 2014 New Revision: 22161 URL: http://svn.gna.org/viewcvs/relax?rev=22161&view=rev Log: The python_seek.py script now accepts the 'all' argument to display all modules supported by the script. Modified: trunk/devel_scripts/python_seek.py Modified: trunk/devel_scripts/python_seek.py URL: http://svn.gna.org/viewcvs/relax/trunk/devel_scripts/python_seek.py?rev=22161&r1=22160&r2=22161&view=diff ============================================================================== --- trunk/devel_scripts/python_seek.py (original) +++ trunk/devel_scripts/python_seek.py Fri Feb 7 18:18:06 2014 @@ -38,6 +38,19 @@ 'python', 'minfx', 'bmrblib', + 'numpy', + 'scipy', + 'wx', + 'mpi4py', + 'epydoc' +] + +MOD_ALL_LIST = [ + 'python', + 'minfx', + 'bmrblib', + 'Numeric', + 'Scientific', 'numpy', 'scipy', 'wx', @@ -184,12 +197,18 @@ # Arguments supplied, so use these. if len(sys.argv) > 1: - # Initialise the list. - self.module_list = [] - - # Loop over the arguments. - for i in range(1, len(sys.argv)): - self.module_list.append(sys.argv[i]) + # The special 'all' argument. + if sys.argv[1] == 'all': + self.module_list = MOD_ALL_LIST + + # Individual modules. + else: + # Initialise the list. + self.module_list = [] + + # Loop over the arguments. + for i in range(1, len(sys.argv)): + self.module_list.append(sys.argv[i]) # Use the defaults. else: