mirror of
https://github.com/aclist/dztui.git
synced 2026-10-29 22:22:52 +01:00
chore: clear errors
This commit is contained in:
1 parent
f3ad104b1b
commit
e64feac425
19 files changed
+56
-72
No files matched your search
@@ -28,19 +28,18 @@ def rebuild_symlinks(config: Path) -> None:
|
||||
source = Path(dayz_path / md5sum)
|
||||
if source.exists() is False:
|
||||
source.symlink_to(workshop / uid)
|
||||
clone_symlinks(steam_path)
|
||||
|
||||
|
||||
def clone_symlinks(config: Path) -> None:
|
||||
def clone_symlinks(steam_path: Path) -> None:
|
||||
"""
|
||||
Used after any symlink operation
|
||||
"""
|
||||
path = lookup(config, Preferences.DEFAULT)
|
||||
steam_path = Path(path)
|
||||
try:
|
||||
dayz_path = PeFile.get_nested_app_path(steam_path, APPID_DAYZ)
|
||||
exp_path = PeFile.get_nested_app_path(steam_path, APPID_DAYZ_EXP)
|
||||
except Exception as e:
|
||||
logger.critical(e)
|
||||
logger.warning(e)
|
||||
return
|
||||
|
||||
# TODO: test these two operations
|
||||
|
||||
Reference in new issue
Block a user