mirror of
https://github.com/aclist/dztui.git
synced 2026-10-29 14:12:45 +01:00
fix: parse parent dir
This commit is contained in:
1 parent
b8230cbf43
commit
b3b98aa407
4 files changed
+31
-15
No files matched your search
@@ -12,6 +12,7 @@ from dzgui.api.servers import get_rules, fqip_to_record
|
||||
from dzgui.const.constants import (
|
||||
APP_NAME,
|
||||
APPID_DAYZ,
|
||||
DAYZ_COMMUNITY_ROOT,
|
||||
LIBRARYFOLDERS_PATH,
|
||||
WORKSHOP_PATH,
|
||||
)
|
||||
@@ -50,6 +51,9 @@ def get_local_mods(workshop_path: Path) -> list[Path]:
|
||||
|
||||
def is_mission(path: Path) -> bool:
|
||||
# TODO: parse integrity of other files
|
||||
parent = path.parent.name
|
||||
if parent != DAYZ_COMMUNITY_ROOT:
|
||||
return False
|
||||
file = path / "init.c"
|
||||
return file.exists()
|
||||
|
||||
|
||||
Reference in new issue
Block a user