Mercurial > ~astiob > upreckon > hgweb
comparison upreckon/config.py @ 161:43e1f2d5d5a4 2.01
The first/only item of testconf.tester is now passed through nativize_path
author | Oleg Oshmyan <chortos@inbox.lv> |
---|---|
date | Fri, 10 Jun 2011 21:25:38 +0100 |
parents | 2db236d25ecd |
children | 161d78f52cc3 e0b2fbd7ebe0 |
comparison
equal
deleted
inserted
replaced
160:93bf6b333c99 | 161:43e1f2d5d5a4 |
---|---|
167 module.path = module.name | 167 module.path = module.name |
168 elif sys.platform != 'win32': | 168 elif sys.platform != 'win32': |
169 module.path = os.path.join(os.path.curdir, problem_name) | 169 module.path = os.path.join(os.path.curdir, problem_name) |
170 else: | 170 else: |
171 module.path = problem_name | 171 module.path = problem_name |
172 if module.tester: | |
173 if isinstance(module.tester, basestring): | |
174 module.tester = nativize_path(module.tester) | |
175 else: | |
176 tester = tuple(module.tester) | |
177 module.tester = (nativize_path(tester[0]),) + tester[1:] | |
172 for name in 'pointmap', 'groupweight': | 178 for name in 'pointmap', 'groupweight': |
173 oldmap = getattr(module, name) | 179 oldmap = getattr(module, name) |
174 if isinstance(oldmap, dict): | 180 if isinstance(oldmap, dict): |
175 newmap = {} | 181 newmap = {} |
176 for key in oldmap: | 182 for key in oldmap: |