Skip to content

Commit 6379342

Browse files
Merge pull request #7 from qingchenyouforcc/master
feat(core): 添加 NSP 处理相关功能
2 parents edd7059 + b79039a commit 6379342

File tree

8 files changed

+501
-0
lines changed

8 files changed

+501
-0
lines changed

.github/release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ changelog:
66
labels:
77
- "feature"
88
- "enhancement"
9+
- "feat"
910
- title: "🐛 修复bug"
1011
labels:
1112
- "bug"
@@ -19,6 +20,7 @@ changelog:
1920
- title: "📖 文档更新"
2021
labels:
2122
- "documentation"
23+
- "docs"
2224

2325
# 排除某些标签的 PR
2426
exclude:

.vscode/settings.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,21 @@
88
"dmypy",
99
"ehthumbs",
1010
"fming",
11+
"HIWORD",
1112
"htmlcov",
13+
"IMAGENAME",
1214
"ipynb",
1315
"ipython",
16+
"LOWORD",
1417
"mkdocs",
1518
"mypy",
19+
"Neurolings",
20+
"Neurosama",
21+
"neurosongspider",
1622
"nosetests",
1723
"oconnor",
1824
"pdm",
25+
"pgrep",
1926
"pipenv",
2027
"Pipfile",
2128
"Pixmap",
@@ -30,14 +37,17 @@
3037
"pyre",
3138
"pytest",
3239
"pytype",
40+
"qingchenyouforcc",
3341
"ropeproject",
3442
"sagemath",
43+
"sama",
3544
"scrapy",
3645
"sdist",
3746
"Spyder",
3847
"spyderproject",
3948
"spyproject",
4049
"swarmToolbox",
50+
"tasklist",
4151
"thumbs",
4252
"toml",
4353
"venv",

data/config.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
{
2+
"Applications": {
3+
"EVZPath": "",
4+
"NeurolingsPath": "",
5+
"NSPPath": "C:/neuroSangSpider/NeuroSongSpider.exe"
6+
},
27
"QFluentWidgets": {
38
"ThemeColor": "#ff009faa",
49
"ThemeMode": "Auto"

pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ description = "An information center software for fans of neurosama (swarm)"
55
requires-python = ">=3.13"
66
dependencies = [
77
"loguru>=0.7.3",
8+
"psutil>=7.0.0",
89
"pyinstaller>=6.14.2",
910
"pyqt6>=6.9.1",
1011
"pyqt6-fluent-widgets[full]>=1.8.3",
12+
"pywin32>=311",
1113
]

src/config.py

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,25 @@ class Config(QConfig):
2323
Theme.AUTO,
2424
OptionsValidator([Theme.AUTO, Theme.LIGHT, Theme.DARK]),
2525
)
26+
27+
# 应用程序路径配置项
28+
nsp_path = ConfigItem(
29+
"Applications",
30+
"NSPPath",
31+
""
32+
)
33+
34+
evz_path = ConfigItem(
35+
"Applications",
36+
"EVZPath",
37+
""
38+
)
39+
40+
neurolings_path = ConfigItem(
41+
"Applications",
42+
"NeurolingsPath",
43+
""
44+
)
2645

2746
def __init__(self, path: Path):
2847
# 指定配置文件路径

0 commit comments

Comments
 (0)