def replace_function(self, filename, function="func"): self._func = loader.load_func(filename, function) print "function replaced:", filename, function
def _check_new_function(self): if self._new_func_queue.qsize() > 0: _file, _func = self._new_func_queue.get() self._func = loader.load_func(_file, _func)