Author: semor Date: Fri Oct 24 15:41:46 2008 New Revision: 7965 URL: http://svn.gna.org/viewcvs/relax?rev=7965&view=rev Log: Introduced verifications for the '-t' and '-l' options not to erase the python script used. This should fix bug 12498 (http://gna.org/bugs/?12498). Modified: 1.3/relax Modified: 1.3/relax URL: http://svn.gna.org/viewcvs/relax/1.3/relax?rev=7965&r1=7964&r2=7965&view=diff ============================================================================== --- 1.3/relax (original) +++ 1.3/relax Fri Oct 24 15:41:46 2008 @@ -202,6 +202,10 @@ # The log file. log_file = options.log + + # Verify that logging won't erase the script used (a '.py' file) + if options.log.endswith(".py"): + log_file = 'LOG_FILE' else: log_file = None @@ -213,6 +217,10 @@ # The tee file. tee_file = options.tee + + # Verify that tee won't erase the script used (a '.py' file) + if options.tee.endswith(".py"): + tee_file = 'TEE_FILE' else: tee_file = None