43 lines
1.2 KiB
Python
43 lines
1.2 KiB
Python
#!/usr/bin/env python
|
|
# -*- coding: utf-8 -*-
|
|
|
|
"""
|
|
MetaHuman DNA工具包
|
|
|
|
这个包包含了用于处理MetaHuman DNA文件的工具和实用程序。
|
|
"""
|
|
|
|
import os
|
|
import sys
|
|
|
|
import config
|
|
# 将主配置中的变量导入到当前模块的命名空间
|
|
TOOL_NAME = config.TOOL_NAME
|
|
TOOL_VERSION = config.TOOL_VERSION
|
|
TOOL_AUTHOR = config.TOOL_AUTHOR
|
|
TOOL_YEAR = config.TOOL_YEAR
|
|
TOOL_MOD_FILENAME = config.TOOL_MOD_FILENAME
|
|
TOOL_LANG = config.TOOL_LANG
|
|
TOOL_WSCL_NAME = config.TOOL_WSCL_NAME
|
|
TOOL_HELP_URL = config.TOOL_HELP_URL
|
|
TOOL_PATH = config.TOOL_PATH
|
|
SCRIPTS_PATH = config.SCRIPTS_PATH
|
|
TOOL_MAIN_SCRIPT = config.TOOL_MAIN_SCRIPT
|
|
UI_PATH = config.UI_PATH
|
|
STYLE_FILE = config.STYLE_FILE
|
|
ICONS_PATH = config.ICONS_PATH
|
|
TOOL_ICON = config.TOOL_ICON
|
|
DEFAULT_ICON = os.path.join(ICONS_PATH, "commandButton.png").replace("\\", "/")
|
|
ASSETS_PATH = config.ASSETS_PATH
|
|
DNA_FILE_PATH = config.DNA_FILE_PATH
|
|
DNA_IMG_PATH = config.DNA_IMG_PATH
|
|
TOOL_COMMAND_ICON = config.TOOL_COMMAND_ICON
|
|
|
|
|
|
# 确保项目路径在sys.path中
|
|
if TOOL_PATH not in sys.path:
|
|
sys.path.insert(0, TOOL_PATH)
|
|
|
|
# 确保scripts路径在sys.path中
|
|
if SCRIPTS_PATH not in sys.path:
|
|
sys.path.insert(0, SCRIPTS_PATH) |