add new methode of get_username() as fallback and add own file_parser for replace con_to_dict

This commit is contained in:
2025-05-09 16:04:43 +02:00
parent ca26576eab
commit 481362b2e6
5 changed files with 86 additions and 50 deletions

View File

@ -5,13 +5,10 @@ import os
import shutil
from pathlib import Path
from subprocess import check_call
from common_tools import LxTools
from wp_app_config import AppConfig
from common_tools import ConfigManager
from common_tools import LxTools
log_name = ConfigManager.username()
keyfile: Path = Path(f"/home/{log_name}/.config/wire_py/pbwgk.pem")
keyfile: Path = AppConfig.PUBLICKEY
if not keyfile.is_file():