comparison 2.00/config.py @ 27:dc4be35d17e0

Bug fixes Bug fix: compat.py now works in Python 3 (module __builtin__ was renamed builtins). Bug fix: random spaces in the indentation of testcases.py have been removed. Bug fix: false dummy{in,out}name's are now again replaced with the values of testcase{in,out}name.
author Oleg Oshmyan <chortos@inbox.lv>
date Fri, 15 Oct 2010 22:17:31 +0000
parents b500e117080e
children a6d554679ce8
comparison
equal deleted inserted replaced
26:5bbb68833868 27:dc4be35d17e0
120 except TypeError: 120 except TypeError:
121 module.paddummies = module.padwithzeroestolength 121 module.paddummies = module.padwithzeroestolength
122 for name in defaults_problem: 122 for name in defaults_problem:
123 if not hasattr(globalconf, name): 123 if not hasattr(globalconf, name):
124 setattr(module, name, getattr(module, name, defaults_problem[name])) 124 setattr(module, name, getattr(module, name, defaults_problem[name]))
125 if not module.dummyinname:
126 module.dummyinname = getattr(module, 'testcaseinname', module.dummyinname)
127 if not module.dummyoutname:
128 module.dummyoutname = getattr(module, 'testcaseoutname', module.dummyoutname)
125 if not hasattr(module, 'path'): 129 if not hasattr(module, 'path'):
126 if hasattr(module, 'name'): 130 if hasattr(module, 'name'):
127 module.path = module.name 131 module.path = module.name
128 elif sys.platform != 'win32': 132 elif sys.platform != 'win32':
129 module.path = os.path.join(os.path.curdir, problem_name) 133 module.path = os.path.join(os.path.curdir, problem_name)