forked from CGArtPython/EasyBPYWrapperAddon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path__init__.py
37 lines (27 loc) · 831 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
import os
import sys
ADDON_FOLDER_PATH = os.path.dirname(__file__)
VERSION = (0, 1, 8)
MODULE_NAME = "easybpy"
ADDON_NAME = (
f"EasyBPY v{VERSION[0]}.{VERSION[1]}.{VERSION[2]}"
)
bl_info = {
"name": "EasyBPY v0.1.8",
"author": "Curtis Holt",
"version": (0, 1, 8),
"blender": (2, 83, 0),
"description": "A module to simplify the use of the Blender Python API.",
"category": "Development",
"doc_url": "",
}
def register():
print(f'ENABLED "{ADDON_NAME}" addon')
print(f"\tadding {MODULE_NAME} to sys path: {ADDON_FOLDER_PATH}")
sys.path.append(ADDON_FOLDER_PATH)
def unregister():
print(f'DISABLE "{ADDON_NAME}" addon')
print(f"\tremoving {MODULE_NAME} from sys path: {ADDON_FOLDER_PATH}")
sys.path.remove(ADDON_FOLDER_PATH)
if __name__ == "__main__":
register()