Implement playwright installation with dependencies and use system python executable.

This commit is contained in:
Paul Gauthier 2024-07-31 08:53:21 -03:00 committed by Paul Gauthier (aider)
parent c7884c94f6
commit e1a9fd69e6

View file

@ -33,7 +33,8 @@ def install_playwright(io):
return True return True
pip_cmd = utils.get_pip_install(["aider-chat[playwright]"]) 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 = "" cmds = ""
if not has_pip: if not has_pip: