def get_func(name): module, func, notification = PARALLEL_FUNCS[name] try: module = importlib.import_module(module) except ZipImportError: # Something windows weird happened, try clearing the zip import cache # incase the zipfile was changed from under us from zipimport import _zip_directory_cache as zdc zdc.clear() module = importlib.import_module(module) func = getattr(module, func) return func, notification
def get_func(name): module, func, notification = PARALLEL_FUNCS[name] try: module = importlib.import_module(module) except ZipImportError: # Something windows weird happened, try clearing the zip import cache # incase the zipfile was changed from under us from zipimport import _zip_directory_cache as zdc zdc.clear() module = importlib.import_module(module) func = getattr(module, func) return func, notification