AppConfig and common_utils further developed for Zenrale configuration
This commit is contained in:
@ -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")
|
||||
|
||||
|
Reference in New Issue
Block a user