format with blank and pylint

This commit is contained in:
2025-04-18 20:50:32 +02:00
parent 582ef21042
commit 39550b392d
4 changed files with 75 additions and 58 deletions

View File

@ -8,13 +8,13 @@ from subprocess import check_call
uname = Path("/tmp/.loguser")
with open(uname, "r") as f:
with open(uname, "r", encoding="utf-8") as f:
logname = f.readline()
""" Dirname "tlecdewg" = Tunnel Encrypt Decrypt Wireguard """
# Dirname "tlecdewg" = Tunnel Encrypt Decrypt Wireguard
dirname = Path("/tmp/tlecdcwg/")
keyfile = Path(f"/home/{logname}/.config/wire_py/pbwgk.pem")
pkeyfile = "/usr/local/etc/ssl/pwgk.pem"
PKEYFILE = "/usr/local/etc/ssl/pwgk.pem"
if not keyfile.is_file():
@ -23,7 +23,7 @@ if not keyfile.is_file():
"openssl",
"rsa",
"-in",
pkeyfile,
PKEYFILE,
"-out",
keyfile,
"-outform",
@ -49,7 +49,7 @@ if os.path.exists(dirname2 + "pbwgk.pem"):
"pkeyutl",
"-decrypt",
"-inkey",
pkeyfile,
PKEYFILE,
"-in",
detunnels,
"-out",