From a5994d50147e85484575d9c9491200e04625c9cb Mon Sep 17 00:00:00 2001 From: Julian Grinblat Date: Tue, 23 Jun 2020 18:09:53 +0900 Subject: [PATCH] sys.executable can be None too --- autorandr.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autorandr.py b/autorandr.py index 6b39928..80d61ef 100755 --- a/autorandr.py +++ b/autorandr.py @@ -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:]) -- 2.39.2