From: Thomas de Queiroz Barros <38295417+thomasqueirozb@users.noreply.github.com> Date: Mon, 24 Aug 2020 17:38:51 +0000 (-0300) Subject: Change os.exit to sys.exit X-Git-Tag: 1.11~3 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=b890915df3d069523d55d9884b0a228bc02a3e4e;p=deb_pkgs%2Fautorandr.git Change os.exit to sys.exit os.exit is not a function in python 3 or 2 --- 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"):