Skip to content

Commit

Permalink
CLI: shutil.which("npm.exe")
Browse files Browse the repository at this point in the history
  • Loading branch information
amotl committed Oct 26, 2024
1 parent c0b7ea7 commit bbd0c3b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion responder/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"""

import logging
import shutil
import subprocess
import typing as t

Expand All @@ -55,7 +56,7 @@ def cli() -> None:
run: bool = args["run"]

if build:
subprocess.check_call(["npm.exe", "run", "build"], cwd=target) # noqa: S603, S607
subprocess.check_call([shutil.which("npm.exe"), "run", "build"], cwd=target) # noqa: S603, S607

if run:
# Maximum request limit. Terminating afterward. Suitable for software testing.
Expand Down

0 comments on commit bbd0c3b

Please sign in to comment.