Mercurial > ~astiob > upreckon > hgweb
comparison upreckon/config.py @ 151:6261eea8a975
Positional cmdline arguments now override testconf.tests and disable groups
author | Oleg Oshmyan <chortos@inbox.lv> |
---|---|
date | Fri, 03 Jun 2011 10:54:11 +0100 |
parents | 006dce02752c |
children | 7951219d9866 |
comparison
equal
deleted
inserted
replaced
150:006dce02752c | 151:6261eea8a975 |
---|---|
2 | 2 |
3 from __future__ import division, with_statement | 3 from __future__ import division, with_statement |
4 | 4 |
5 from .compat import * | 5 from .compat import * |
6 from . import files | 6 from . import files |
7 from __main__ import options | 7 from __main__ import options, args |
8 | 8 |
9 if files.ZipArchive: | 9 if files.ZipArchive: |
10 try: | 10 try: |
11 import zipimport | 11 import zipimport |
12 except ImportError: | 12 except ImportError: |
177 except TypeError: | 177 except TypeError: |
178 newmap[key] = oldmap[key] | 178 newmap[key] = oldmap[key] |
179 setattr(module, name, newmap) | 179 setattr(module, name, newmap) |
180 if options.no_maxtime: | 180 if options.no_maxtime: |
181 module.maxcputime = module.maxwalltime = 0 | 181 module.maxcputime = module.maxwalltime = 0 |
182 if args: | |
183 module.usegroups = False | |
184 module.tests = args | |
182 try: | 185 try: |
183 sys.dont_write_bytecode = dwb | 186 sys.dont_write_bytecode = dwb |
184 except NameError: | 187 except NameError: |
185 pass | 188 pass |
186 for name in patterns: | 189 for name in patterns: |