diff 2.00/config.py @ 43:81f58c938ec5

Fixed the -s option
author Oleg Oshmyan <chortos@inbox.lv>
date Sun, 05 Dec 2010 15:37:35 +0100
parents a6d554679ce8
children
line wrap: on
line diff
--- a/2.00/config.py	Sun Dec 05 15:29:17 2010 +0100
+++ b/2.00/config.py	Sun Dec 05 15:37:35 2010 +0100
@@ -42,6 +42,9 @@
                     'ansname': ''}
 defaults_global = {'tasknames': None,
                    'force_zero_exitcode': True}
+defaults_noerase = {'inname': '%.in',
+                    'outname': '%.out',
+                    'ansname': '%.ans'}
 patterns = ('inname', 'outname', 'ansname', 'testcaseinname',
             'testcaseoutname', 'dummyinname', 'dummyoutname')
 
@@ -170,6 +173,9 @@
 			del sys.modules['testconf']
 	for name in defaults_global:
 		setattr(module, name, getattr(module, name, defaults_global[name]))
+	if not options.erase:
+		for name in defaults_noerase:
+			setattr(module, name, getattr(module, name, defaults_noerase[name]))
 	global globalconf
 	globalconf = module
 	sys.dont_write_bytecode = dwb