Author: bugman Date: Thu Oct 6 21:05:00 2011 New Revision: 14809 URL: http://svn.gna.org/viewcvs/relax?rev=14809&view=rev Log: Bug fix for the logging and teeing command line options. These are now class variables! Modified: 1.3/relax.py Modified: 1.3/relax.py URL: http://svn.gna.org/viewcvs/relax/1.3/relax.py?rev=14809&r1=14808&r2=14809&view=diff ============================================================================== --- 1.3/relax.py (original) +++ 1.3/relax.py Thu Oct 6 21:05:00 2011 @@ -276,8 +276,8 @@ self.log_file = options.log # Fail if the file already exists. - if access(log_file, F_OK): - parser.error("the log file " + repr(log_file) + " already exists") + if access(self.log_file, F_OK): + parser.error("the log file " + repr(self.log_file) + " already exists") else: self.log_file = None @@ -291,8 +291,8 @@ self.tee_file = options.tee # Fail if the file already exists. - if access(tee_file, F_OK): - parser.error("the tee file " + repr(tee_file) + " already exists") + if access(self.tee_file, F_OK): + parser.error("the tee file " + repr(self.tee_file) + " already exists") else: self.tee_file = None