replace "str(" with f"format{example}"
This commit is contained in:
@ -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",
|
||||
|
Reference in New Issue
Block a user