From e1a9fd69e6101d6c0239f7d754ad8e34476e756a Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Wed, 31 Jul 2024 08:53:21 -0300 Subject: [PATCH] Implement playwright installation with dependencies and use system python executable. --- aider/scrape.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/aider/scrape.py b/aider/scrape.py index 1e7899af7..7d3bed945 100755 --- a/aider/scrape.py +++ b/aider/scrape.py @@ -33,7 +33,8 @@ def install_playwright(io): return True pip_cmd = utils.get_pip_install(["aider-chat[playwright]"]) - chromium_cmd = "playwright install --with-deps chromium".split() + chromium_cmd = "-m playwright install --with-deps chromium" + chromium_cmd = [sys.executable] + chromium_cmd.split() cmds = "" if not has_pip: