From: Julian Grinblat Date: Tue, 23 Jun 2020 09:09:53 +0000 (+0900) Subject: sys.executable can be None too X-Git-Tag: 1.11~7 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=a5994d50147e85484575d9c9491200e04625c9cb;p=deb_pkgs%2Fautorandr.git sys.executable can be None too --- 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:])