From 0f1b4084db3f0445c623c4562bf4bda45ad3a667 Mon Sep 17 00:00:00 2001 From: Tmpecho Date: Mon, 21 Aug 2023 21:59:40 +0200 Subject: Forgot to change file_path variable name --- autotiling/main.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/autotiling/main.py b/autotiling/main.py index 2bd9fb5..bcce23e 100644 --- a/autotiling/main.py +++ b/autotiling/main.py @@ -26,13 +26,14 @@ try: except ImportError: __version__ = "unknown" + def temp_dir(): return os.getenv("TMPDIR") or os.getenv("TEMP") or os.getenv("TMP") or "/tmp" -def save_string(string, file): +def save_string(string, file_path): try: - with open(file_path, "wt") as file: + with open(file_path, "wt") as file: file.write(string) except Exception as e: print(e) @@ -120,7 +121,7 @@ def switch_splitting(i3, e, debug, outputs, workspaces, depth_limit): def main(): parser = argparse.ArgumentParser() - + parser.add_argument("-d", "--debug", action="store_true", help="print debug messages to stderr") parser.add_argument("-v", "--version", action="version", @@ -139,7 +140,6 @@ def main(): parser.add_argument("-e", "--events", nargs="*", type=str, default=["WINDOW", "MODE"], help="list of events to trigger switching split orientation; default: WINDOW MODE") - args = parser.parse_args() if args.debug: -- cgit