format with blank and pylint
This commit is contained in:
@ -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",
|
||||
|
Reference in New Issue
Block a user