Mercurial > ~astiob > upreckon > hgweb
comparison upreckon-vcs @ 79:ee8a99dcaaed
Renamed configuration variable tasknames to problems
author | Oleg Oshmyan <chortos@inbox.lv> |
---|---|
date | Mon, 17 Jan 2011 11:11:01 +0000 |
parents | d46bd7ee3e69 |
children | 37c4ad87583c |
comparison
equal
deleted
inserted
replaced
78:d46bd7ee3e69 | 79:ee8a99dcaaed |
---|---|
111 from problem import * | 111 from problem import * |
112 except ImportError: | 112 except ImportError: |
113 import_error(sys.exc_info()[1]) | 113 import_error(sys.exc_info()[1]) |
114 | 114 |
115 # Support single-problem configurations | 115 # Support single-problem configurations |
116 if globalconf.tasknames is None: | 116 if globalconf.problems is None: |
117 shouldprintnames = False | 117 shouldprintnames = False |
118 globalconf.multiproblem = False | 118 globalconf.multiproblem = False |
119 globalconf.tasknames = os.path.curdir, | 119 globalconf.problems = os.path.curdir, |
120 else: | 120 else: |
121 globalconf.multiproblem = True | 121 globalconf.multiproblem = True |
122 shouldprintnames = True | 122 shouldprintnames = True |
123 | 123 |
124 ntasks = 0 | 124 ntasks = 0 |
125 nfulltasks = 0 | 125 nfulltasks = 0 |
126 maxscore = 0 | 126 maxscore = 0 |
127 realscore = 0 | 127 realscore = 0 |
128 | 128 |
129 for taskname in (globalconf.tasknames if not options.problems else options.problems): | 129 for taskname in (globalconf.problems if not options.problems else options.problems): |
130 problem = Problem(taskname) | 130 problem = Problem(taskname) |
131 | 131 |
132 if ntasks and not options.copyonly: say() | 132 if ntasks and not options.copyonly: say() |
133 if shouldprintnames: say(taskname) | 133 if shouldprintnames: say(taskname) |
134 | 134 |