Skip to content

Commit

Permalink
Execute command if provided
Browse files Browse the repository at this point in the history
  • Loading branch information
certik committed Jan 29, 2025
1 parent 5352a07 commit 3ea6774
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions conda_spawn/shell.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,8 @@ def spawn_popen(
mode="w",
) as f:
f.write(self.script())
if command:
f.write(" ".join(command))
return subprocess.Popen(
[self.executable(), *self.args(), f.name], env=self.env(), **kwargs
)
Expand Down

0 comments on commit 3ea6774

Please sign in to comment.