diff options
author | Tmpecho <TMPEcho@gmail.com> | 2023-08-21 21:59:40 +0200 |
---|---|---|
committer | Tmpecho <TMPEcho@gmail.com> | 2023-08-21 21:59:40 +0200 |
commit | 0f1b4084db3f0445c623c4562bf4bda45ad3a667 (patch) | |
tree | 7a9944b9ee2c4ab6e6156e75efc4d5c20751a9de | |
parent | 117ef11f11c796f4e0362fee462398b97cfa3c1e (diff) | |
download | autotiling-0f1b4084db3f0445c623c4562bf4bda45ad3a667.tar.gz |
Forgot to change file_path variable name
-rw-r--r-- | autotiling/main.py | 8 |
1 files 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: |