-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path__init__.py
31 lines (24 loc) · 846 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
from os import path
import logging
import traceback
from .appdirs import user_data_dir
from .settings import MDSTSettings
bl_info = {
'name': 'MD Spine Tools',
'author': 'UNOWEN-OwO',
'version': (0, 0, 3),
'blender': (3, 6, 0),
'location': '3D View > UI > MD Spine Tools',
'description': 'Import Spine mesh and animation form Master Duel',
'category': 'Import-Export',
'warning': 'this add-on is beta',
'project_name': 'md_spine_tools',
}
config_path = path.join(user_data_dir(bl_info['project_name'], False), 'settings.json')
MDST_SETTINGS = MDSTSettings(config_path)
logging.basicConfig(level=logging.INFO, format='[%(name)s] %(levelname)s: %(message)s')
MDST_LOGGER = logging.getLogger('md_spine_tools')
try:
from .mdst_ui import register, unregister
except Exception:
traceback.print_exc()