equal
deleted
inserted
replaced
185 self.python_threads_vars["_runtime_begin"] = [] |
185 self.python_threads_vars["_runtime_begin"] = [] |
186 self.python_threads_vars["_runtime_cleanup"] = [] |
186 self.python_threads_vars["_runtime_cleanup"] = [] |
187 |
187 |
188 for filename in os.listdir(self.workingdir): |
188 for filename in os.listdir(self.workingdir): |
189 name, ext = os.path.splitext(filename) |
189 name, ext = os.path.splitext(filename) |
190 if name.startswith("runtime") and ext == ".py": |
190 if name.upper().startswith("RUNTIME") and ext.upper() == ".PY": |
191 try: |
191 try: |
192 # TODO handle exceptions in runtime.py |
192 # TODO handle exceptions in runtime.py |
193 # pyfile may redefine _runtime_cleanup |
193 # pyfile may redefine _runtime_cleanup |
194 # or even call _PythonThreadProc itself. |
194 # or even call _PythonThreadProc itself. |
195 execfile(os.path.join(self.workingdir, filename), self.python_threads_vars) |
195 execfile(os.path.join(self.workingdir, filename), self.python_threads_vars) |