diff --git a/nm2nix.py b/nm2nix.py index 7593306..c73bff1 100644 --- a/nm2nix.py +++ b/nm2nix.py @@ -10,7 +10,7 @@ for i in nmfiles: config = configparser.ConfigParser(delimiters=('=', )) config.read(i) - connection_name = i.strip(".nmconnection") + connection_name = i.removesuffix(".nmconnection") print(f" {connection_name} = {{") for section in config.sections(): print(f" {section} = {{")