replace "str(" with f"format{example}"

This commit is contained in:
2025-04-23 14:18:06 +02:00
parent aa66f4dc68
commit 3bab0710a4
5 changed files with 64 additions and 90 deletions

View File

@ -33,16 +33,16 @@ if not keyfile.is_file():
)
shutil.chown(keyfile, 1000, 1000)
dirname2 = "/home/" + logname + "/.config/wire_py/"
dirname2 = f"/home/{logname}/.config/wire_py/"
detl = os.listdir(dirname2)
os.chdir(dirname2)
detl.remove("keys")
detl.remove("settings")
if os.path.exists(dirname2 + "pbwgk.pem"):
if os.path.exists(f"{dirname2}pbwgk.pem"):
detl.remove("pbwgk.pem")
for detunnels in detl:
tlname2 = detunnels[:-4] + ".conf"
extpath = str(dirname) + "/" + tlname2
tlname2 = f"{detunnels[:-4]}.conf"
extpath = f"{dirname}/{tlname2}"
check_call(
[
"openssl",