From b28d94ac9700faeb992cd0814efd53d6cae69742 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 21 Feb 2022 14:45:12 +0530 Subject: [PATCH] Always use kitty as the python interpreter to run in the tests --- kitty_tests/__init__.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/kitty_tests/__init__.py b/kitty_tests/__init__.py index 720e616c9..b64148377 100644 --- a/kitty_tests/__init__.py +++ b/kitty_tests/__init__.py @@ -130,10 +130,8 @@ class BaseTest(TestCase): return options def cmd_to_run_python_code(self, code): - cmd = [sys.executable] - cmd.append('-c' if 'python' in sys.executable.lower() else '+runpy') - cmd.append(code) - return cmd + from kitty.constants import kitty_exe + return [kitty_exe(), '+runpy', code] def create_screen(self, cols=5, lines=5, scrollback=5, cell_width=10, cell_height=20, options=None): self.set_options(options)