Skip to content

Commit

Permalink
fix: correct nodeenv environment (#305)
Browse files Browse the repository at this point in the history
  • Loading branch information
RobertCraigie authored Sep 25, 2024
1 parent 05e4563 commit 276e381
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pyright/node.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ def run(
log.debug('Running nodeenv command with args: %s', node_args)
return cast(
'subprocess.CompletedProcess[str] | subprocess.CompletedProcess[bytes]',
subprocess.run(node_args, **kwargs),
subprocess.run(node_args, env=env, **kwargs),
)
else:
assert_never(strategy)
Expand Down

0 comments on commit 276e381

Please sign in to comment.