diff options
author | Piotr Miller <nwg.piotr@gmail.com> | 2023-08-21 22:03:30 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-21 22:03:30 +0200 |
commit | 31207c0ca44ed846763dc6df55316ee7a7d047a8 (patch) | |
tree | 7a9944b9ee2c4ab6e6156e75efc4d5c20751a9de | |
parent | 117ef11f11c796f4e0362fee462398b97cfa3c1e (diff) | |
parent | 0f1b4084db3f0445c623c4562bf4bda45ad3a667 (diff) | |
download | autotiling-31207c0ca44ed846763dc6df55316ee7a7d047a8.tar.gz |
Merge pull request #48 from Tmpecho/master
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: |