完善初始化
This commit is contained in:
parent
203ce3300a
commit
9ca8ababf2
13
Pipfile
13
Pipfile
|
@ -1,13 +0,0 @@
|
||||||
[[source]]
|
|
||||||
url = "https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple"
|
|
||||||
verify_ssl = true
|
|
||||||
name = "pip_conf_index_global"
|
|
||||||
|
|
||||||
[packages]
|
|
||||||
pyqt5 = "*"
|
|
||||||
pyqt-fluent-widgets = {extras = ["full"], version = "*"}
|
|
||||||
|
|
||||||
[dev-packages]
|
|
||||||
|
|
||||||
[requires]
|
|
||||||
python_version = "3.11"
|
|
14
app/env.py
Normal file
14
app/env.py
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
import platformdirs
|
||||||
|
import os
|
||||||
|
|
||||||
|
dirs = platformdirs.PlatformDirs("HoYoCenter")
|
||||||
|
|
||||||
|
def init_dirs():
|
||||||
|
os.makedirs(dirs.user_config_path, exist_ok=True)
|
||||||
|
os.makedirs(dirs.user_log_path, exist_ok=True)
|
||||||
|
os.makedirs(dirs.user_data_path, exist_ok=True)
|
||||||
|
|
||||||
|
def init():
|
||||||
|
init_dirs()
|
||||||
|
|
||||||
|
init()
|
1
main.py
1
main.py
|
@ -5,6 +5,7 @@ from qfluentwidgets import FluentIcon as FIF
|
||||||
from interface.main import MainWidget
|
from interface.main import MainWidget
|
||||||
from interface.setting import SettingWidget
|
from interface.setting import SettingWidget
|
||||||
from interface.init import InitWindow
|
from interface.init import InitWindow
|
||||||
|
import app.env as env
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
# 主窗口类
|
# 主窗口类
|
||||||
|
|
3
requirements.txt
Normal file
3
requirements.txt
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
pyqt5==5.15.11
|
||||||
|
PyQt-Fluent-Widgets[full]==1.6.3
|
||||||
|
platformdirs==4.3.1
|
Loading…
Reference in New Issue
Block a user