comparison config.py @ 79:ee8a99dcaaed

Renamed configuration variable tasknames to problems
author Oleg Oshmyan <chortos@inbox.lv>
date Mon, 17 Jan 2011 11:11:01 +0000
parents d46bd7ee3e69
children 06356af50bf9
comparison
equal deleted inserted replaced
78:d46bd7ee3e69 79:ee8a99dcaaed
40 'dummyoutname': '', 40 'dummyoutname': '',
41 'tester': None, 41 'tester': None,
42 'maxexitcode': 0, 42 'maxexitcode': 0,
43 'inname': '', 43 'inname': '',
44 'ansname': ''} 44 'ansname': ''}
45 defaults_global = {'tasknames': None, 45 defaults_global = {'problems': None,
46 'force_zero_exitcode': True} 46 'force_zero_exitcode': True}
47 defaults_noerase = {'inname': '%.in', 47 defaults_noerase = {'inname': '%.in',
48 'outname': '%.out', 48 'outname': '%.out',
49 'ansname': '%.ans'} 49 'ansname': '%.ans'}
50 patterns = ('inname', 'outname', 'ansname', 'testcaseinname', 50 patterns = ('inname', 'outname', 'ansname', 'testcaseinname',
192 for name in defaults_global: 192 for name in defaults_global:
193 setattr(module, name, getattr(module, name, defaults_global[name])) 193 setattr(module, name, getattr(module, name, defaults_global[name]))
194 if not options.erase: 194 if not options.erase:
195 for name in defaults_noerase: 195 for name in defaults_noerase:
196 setattr(module, name, getattr(module, name, defaults_noerase[name])) 196 setattr(module, name, getattr(module, name, defaults_noerase[name]))
197 if hasattr(module, 'tasknames'):
198 module.problems = module.tasknames
197 global globalconf 199 global globalconf
198 globalconf = module 200 globalconf = module
199 sys.dont_write_bytecode = dwb 201 sys.dont_write_bytecode = dwb
200 return module 202 return module