]> git.donarmstrong.com Git - deb_pkgs/autorandr.git/commitdiff
Change os.exit to sys.exit
authorThomas de Queiroz Barros <38295417+thomasqueirozb@users.noreply.github.com>
Mon, 24 Aug 2020 17:38:51 +0000 (14:38 -0300)
committerPhillip Berndt <phillip.berndt@googlemail.com>
Mon, 24 Aug 2020 19:01:55 +0000 (21:01 +0200)
os.exit is not a function in python 3 or 2

autorandr.py

index 80d61ef87eea574544367e130bdd224086444d7b..535ec31f6005a4a2f6190b5c7c6e52cdc10eb8ef 100755 (executable)
@@ -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"):