From f724117284413131aac61ac7c0407ac2ecf421bf Mon Sep 17 00:00:00 2001 From: Andreas Motl Date: Sat, 26 Oct 2024 20:59:09 +0200 Subject: [PATCH] fix windows? --- responder/cli.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/responder/cli.py b/responder/cli.py index e6cac73c..1d4df745 100644 --- a/responder/cli.py +++ b/responder/cli.py @@ -29,7 +29,7 @@ """ import logging -import shutil +import os import subprocess import typing as t @@ -56,7 +56,7 @@ def cli() -> None: run: bool = args["run"] if build: - subprocess.check_call([shutil.which("npm.exe"), "run", "build"], cwd=target) # noqa: S603, S607 + subprocess.check_call(["npm", "run", "build"], cwd=target, env=os.environ) # noqa: S603, S607 if run: # Maximum request limit. Terminating afterward. Suitable for software testing.