From b890915df3d069523d55d9884b0a228bc02a3e4e Mon Sep 17 00:00:00 2001 From: Thomas de Queiroz Barros <38295417+thomasqueirozb@users.noreply.github.com> Date: Mon, 24 Aug 2020 14:38:51 -0300 Subject: [PATCH] Change os.exit to sys.exit os.exit is not a function in python 3 or 2 --- autorandr.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autorandr.py b/autorandr.py index 80d61ef..535ec31 100755 --- a/autorandr.py +++ b/autorandr.py @@ -1111,7 +1111,7 @@ def dispatch_call_to_sessions(argv): os.execl(sys.executable, sys.executable, autorandr_binary, *argv[1:]) else: os.execl(autorandr_binary, autorandr_binary, *argv[1:]) - os.exit(1) + sys.exit(1) os.waitpid(child_pid, 0) for directory in os.listdir("/proc"): -- 2.39.2