Author: macraild Date: Thu Aug 31 15:38:20 2006 New Revision: 2544 URL: http://svn.gna.org/viewcvs/relax?rev=2544&view=rev Log: Move RelaxWarning initialisation till after parsing of command line arguments. See: mail.gna.org/public/relax-devel/2006-08/msg00088.html Modified: branches/warning/relax Modified: branches/warning/relax URL: http://svn.gna.org/viewcvs/relax/branches/warning/relax?rev=2544&r1=2543&r2=2544&view=diff ============================================================================== --- branches/warning/relax (original) +++ branches/warning/relax Thu Aug 31 15:38:20 2006 @@ -101,8 +101,6 @@ # Set up the program internal errors and warnings. RelaxErrors(self) - RelaxWarnings() - __builtin__.warn = warn # Set the program introduction string to nothing. self.intro_string = None @@ -134,6 +132,10 @@ # Process the command line arguments and determine the relax mode. mode, log_file, tee_file = self.arguments() + # Initialise the warnings sytem. + RelaxWarnings() + __builtin__.warn = warn + # Show the version number and exit. if mode == 'version': print 'relax ' + self.version