From 8278e2b88df9c374d80535e6cb5b171c1c39d81a Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 23 Feb 2022 23:25:23 +0530 Subject: [PATCH] Dont fail test in no PATH in environ --- kitty_tests/shell_integration.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kitty_tests/shell_integration.py b/kitty_tests/shell_integration.py index cf40b5ac1..540c686f3 100644 --- a/kitty_tests/shell_integration.py +++ b/kitty_tests/shell_integration.py @@ -33,7 +33,7 @@ def bash_ok(): def basic_shell_env(home_dir): ans = { - 'PATH': os.environ['PATH'], + 'PATH': os.environ.get('PATH', '/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin'), 'HOME': home_dir, 'TERM': 'xterm-kitty', 'TERMINFO': terminfo_dir,