Mercurial > ~astiob > upreckon > hgweb
changeset 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 | 93bf6b333c99 |
children | b71995909857 |
files | upreckon/config.py |
diffstat | 1 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/upreckon/config.py Fri Jun 10 21:22:53 2011 +0100 +++ b/upreckon/config.py Fri Jun 10 21:25:38 2011 +0100 @@ -169,6 +169,12 @@ module.path = os.path.join(os.path.curdir, problem_name) else: module.path = problem_name + if module.tester: + if isinstance(module.tester, basestring): + module.tester = nativize_path(module.tester) + else: + tester = tuple(module.tester) + module.tester = (nativize_path(tester[0]),) + tester[1:] for name in 'pointmap', 'groupweight': oldmap = getattr(module, name) if isinstance(oldmap, dict):