Update
This commit is contained in:
parent
e039052970
commit
c161a0a457
1
DevGoals.md
Normal file
1
DevGoals.md
Normal file
@ -0,0 +1 @@
|
|||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
from .data import *
|
from . import *
|
||||||
|
@ -2,11 +2,31 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
import os
|
import os
|
||||||
|
import sys
|
||||||
|
from PySide2 import QtCore, QtGui, QtWidgets
|
||||||
|
|
||||||
|
# 添加项目根目录到 Python 路径
|
||||||
|
ROOT_DIR = os.path.dirname(os.path.dirname(__file__))
|
||||||
|
if ROOT_DIR not in sys.path:
|
||||||
|
sys.path.insert(0, ROOT_DIR)
|
||||||
from config import data
|
from config import data
|
||||||
QtCore, QtGui, QtWidgets = data.Qt()
|
QtCore, QtGui, QtWidgets = data.Qt()
|
||||||
|
|
||||||
|
#===================================== 2. Global Variables =====================================
|
||||||
|
TOOL_NAME = data.TOOL_NAME
|
||||||
|
TOOL_VERSION = data.TOOL_VERSION
|
||||||
|
TOOL_AUTHOR = data.TOOL_AUTHOR
|
||||||
|
TOOL_LANG = data.TOOL_LANG
|
||||||
|
TOOL_WSCL_NAME = data.TOOL_WSCL_NAME
|
||||||
|
TOOL_HELP_URL = data.TOOL_HELP_URL
|
||||||
|
SCRIPTS_PATH = data.SCRIPTS_PATH
|
||||||
|
ICONS_PATH = data.ICONS_PATH
|
||||||
|
|
||||||
|
TOOL_MAIN_SCRIPT = data.TOOL_MAIN_SCRIPT
|
||||||
|
TOOL_MOD_FILENAME = data.TOOL_MOD_FILENAME
|
||||||
|
TOOL_ICON = data.TOOL_ICON
|
||||||
|
TOOL_COMMAND_ICON = data.TOOL_COMMAND_ICON
|
||||||
|
|
||||||
# 全局变量声明
|
|
||||||
main_window = None
|
main_window = None
|
||||||
|
|
||||||
class MetaFusionWindow(QtWidgets.QMainWindow):
|
class MetaFusionWindow(QtWidgets.QMainWindow):
|
||||||
|
Loading…
Reference in New Issue
Block a user