-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path__init__.py
42 lines (35 loc) · 967 Bytes
/
__init__.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
bl_info = {
'name': 'Easy Bake Node',
'author': '会飞的键盘侠',
'version': (0, 0, 1),
'blender': (3, 0, 0),
'location': '3DView->Panel',
'category': '辣椒出品',
'doc_url': "https://bing.com"
}
import sys
import bpy
from .src import register as reg
from .src import unregister as unreg
from .utils.logger import logger
from .utils.timer import timer_reg, timer_unreg
from .utils.watcher import watcher_reg, watcher_unreg
def register():
logger.debug(f'{bl_info["name"]}: register')
reg()
timer_reg()
watcher_reg()
def unregister():
logger.debug(f'{bl_info["name"]}: unregister')
unreg()
watcher_unreg()
timer_unreg()
modules_update()
def modules_update():
from .utils.logger import logger
logger.close()
for i in list(sys.modules):
if not i.startswith(__package__) or i == __package__:
continue
del sys.modules[i]
del sys.modules[__package__]