]> git.donarmstrong.com Git - deb_pkgs/autorandr.git/blobdiff - autorandr.py
sys.executable can be None too
[deb_pkgs/autorandr.git] / 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:])