Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/modules/addon_utils.py
| Context not available. | |||||
| mod.__time__ = os.path.getmtime(mod.__file__) | mod.__time__ = os.path.getmtime(mod.__file__) | ||||
| mod.__addon_enabled__ = False | mod.__addon_enabled__ = False | ||||
| except Exception as ex: | except Exception as ex: | ||||
| # if the addon doesn't exist, dont print full traceback | # if the addon doesn't exist, don't print full traceback | ||||
| if type(ex) is ImportError and ex.name == module_name: | if type(ex) is ImportError and ex.name == module_name: | ||||
| print("addon not found:", repr(module_name)) | print("addon not found:", repr(module_name)) | ||||
| else: | else: | ||||
| Context not available. | |||||