Author: bugman Date: Fri Feb 7 17:55:41 2014 New Revision: 22159 URL: http://svn.gna.org/viewcvs/relax?rev=22159&view=rev Log: The python_seek.py script can now check for the ancient Scientific module. 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=22159&r1=22158&r2=22159&view=diff ============================================================================== --- trunk/devel_scripts/python_seek.py (original) +++ trunk/devel_scripts/python_seek.py Fri Feb 7 17:55:41 2014 @@ -77,6 +77,8 @@ self.version_numeric(file) if 'numpy' in self.module_list: self.version_numpy(file) + if 'Scientific' in self.module_list: + self.version_scientific(file) if 'scipy' in self.module_list: self.version_scipy(file) if 'wx' in self.module_list: @@ -299,6 +301,23 @@ # Execute and print the version self.execute(label="numpy:", file=file, commands=commands) + + + def version_scientific(self, file=None): + """Determine and print out the Scientific module version info.""" + + # The commands. + commands = [ + "try:\n", + " import Scientific\n", + " version = Scientific.__version__\n", + "except:\n", + " version = '-'\n", + "print(version)\n", + ] + + # Execute and print the version + self.execute(label="Scientific:", file=file, commands=commands) def version_scipy(self, file=None):