AppConfig and common_utils further developed for Zenrale configuration

This commit is contained in:
2025-05-10 01:55:30 +02:00
parent 481362b2e6
commit d0adaa76e4
5 changed files with 56 additions and 40 deletions

@ -6,15 +6,8 @@ import shutil
from pathlib import Path
from subprocess import check_call
from wp_app_config import AppConfig
import getpass
log_name: str = getpass.getuser()
if log_name == "root":
from common_tools import LxTools
log_name: str = LxTools.get_username()
print("replacement method applied")
log_name = AppConfig.USER_FILE.read_text()
keyfile: Path = Path(f"/home/{log_name}/.config/wire_py/pbwgk.pem")