reformat files

This commit is contained in:
2025-04-18 15:04:22 +02:00
parent ca58ac86a4
commit 582ef21042
5 changed files with 1042 additions and 704 deletions

View File

@ -1,14 +1,13 @@
#!/usr/bin/python3
from subprocess import check_call
from pathlib import Path
from subprocess import check_call
path_to_file = Path(Path.home() / '.config/wire_py/settings')
path_to_file = Path(Path.home() / ".config/wire_py/settings")
with open(path_to_file, 'r') as a_con:
with open(path_to_file, "r") as a_con:
lines = a_con.readlines()
a_con = lines[7].strip()
if a_con != 'off':
check_call(['nmcli', 'connection', 'up', a_con])
if a_con != "off":
check_call(["nmcli", "connection", "up", a_con])
else:
pass