04-06-2025_large_update #35
.gitignorevcs.xmlwire-py.imlworkspace.xmlChangelog
.idea
inspectionProfiles
misc.xmlmodules.xmlshelf
Uncommitted_changes_before_Checkout_at_19_08_24,_06_49_[Changes]
Uncommitted_changes_before_Checkout_at_19_08_24,_06_49_[Changes]1
Uncommitted_changes_before_Checkout_at_19_08_24__06_49__Changes_.xml__pycache__
cls_mth_fc.pycommon_tools.pyinstallsettingsssl_decrypt.pyssl_encrypt.pystart_wg.pywirepy.pywp_app_config.py@ -8,7 +8,9 @@ from subprocess import check_call
|
|||||||
from wp_app_config import AppConfig
|
from wp_app_config import AppConfig
|
||||||
from common_tools import LxTools
|
from common_tools import LxTools
|
||||||
|
|
||||||
keyfile: Path = AppConfig.PUBLICKEY
|
log_name = AppConfig.USER_FILE.read_text()
|
||||||
|
|
||||||
|
keyfile: Path = Path(f"/home/{log_name}/.config/wire_py/pbwgk.pem")
|
||||||
|
|
||||||
if not keyfile.is_file():
|
if not keyfile.is_file():
|
||||||
|
|
||||||
|
@ -89,7 +89,10 @@ class AppConfig:
|
|||||||
"""Ensures that all required directories exist"""
|
"""Ensures that all required directories exist"""
|
||||||
if not cls.CONFIG_DIR.exists():
|
if not cls.CONFIG_DIR.exists():
|
||||||
cls.CONFIG_DIR.mkdir(parents=True, exist_ok=True)
|
cls.CONFIG_DIR.mkdir(parents=True, exist_ok=True)
|
||||||
|
cls.KEYS_FILE.touch()
|
||||||
cls.TEMP_DIR.mkdir(parents=True, exist_ok=True)
|
cls.TEMP_DIR.mkdir(parents=True, exist_ok=True)
|
||||||
|
if not cls.KEYS_FILE.exists():
|
||||||
|
cls.KEYS_FILE.touch()
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def create_default_settings(cls) -> None:
|
def create_default_settings(cls) -> None:
|
||||||
|
Reference in New Issue
Block a user