]> git.donarmstrong.com Git - deb_pkgs/autorandr.git/commitdiff
sys.executable can be None too
authorJulian Grinblat <julian@dotcore.co.il>
Tue, 23 Jun 2020 09:09:53 +0000 (18:09 +0900)
committerPhillip Berndt <phillip.berndt@googlemail.com>
Fri, 26 Jun 2020 08:18:49 +0000 (10:18 +0200)
autorandr.py

index 6b39928ee7fbcbf62694eab30d2bd605dc123d34..80d61ef87eea574544367e130bdd224086444d7b 100755 (executable)
@@ -1107,7 +1107,7 @@ def dispatch_call_to_sessions(argv):
             os.chdir(pwent.pw_dir)
             os.environ.clear()
             os.environ.update(process_environ)
-            if sys.executable != "":
+            if sys.executable != "" and sys.executable != None:
                 os.execl(sys.executable, sys.executable, autorandr_binary, *argv[1:])
             else:
                 os.execl(autorandr_binary, autorandr_binary, *argv[1:])