changeset 38:a6d554679ce8

Fixed a bug with nested configuration namespaces in config.py
author Oleg Oshmyan <chortos@inbox.lv>
date Fri, 03 Dec 2010 02:45:56 +0000
parents ddb3e1098727
children 2b459f9743b4
files 2.00/config.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/2.00/config.py	Fri Dec 03 02:45:19 2010 +0000
+++ b/2.00/config.py	Fri Dec 03 02:45:56 2010 +0000
@@ -122,6 +122,7 @@
 	for name in defaults_problem:
 		if not hasattr(globalconf, name):
 			setattr(module, name, getattr(module, name, defaults_problem[name]))
+	module = Config(module, globalconf)
 	if not module.dummyinname:
 		module.dummyinname = getattr(module, 'testcaseinname', module.dummyinname)
 	if not module.dummyoutname:
@@ -136,7 +137,6 @@
 	if options.no_maxtime:
 		module.maxtime = 0
 	sys.dont_write_bytecode = dwb
-	module = Config(module, globalconf)
 	for name in patterns:
 		if hasattr(module, name):
 			setattr(module, name, getattr(module, name).replace('%', problem_name))