Skip to content

Commit 5a2a350

Browse files
authored
Fixed autobuild failure on Windows. (#637)
1 parent 4c4618e commit 5a2a350

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/viser/_client_autobuild.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,11 @@ def _build_viser_client(out_dir: Path, cached: bool = True) -> None:
115115
+ subprocess_env["PATH"]
116116
)
117117
npm_path = node_bin_dir / "npm"
118+
119+
if sys.platform == "win32":
120+
npx_path = npx_path.with_suffix(".cmd")
121+
npm_path = npm_path.with_suffix(".cmd")
122+
118123
subprocess.run(
119124
args=[str(npm_path), "install"],
120125
env=subprocess_env,

0 commit comments

Comments
 (0)