Skip to content

Conversation

@mchristen-astranis
Copy link

When using Manager directly it could be convenient to pass kwargs to Popen. For example, you could set shell to False to avoid using the shell. In general this PR should allow for greater flexibility when using Manager directly while having no impact on the more standard CLI usage of honcho.

self._events = events
self._child = self._child_ctor(self.cmd, env=self.env, cwd=self.cwd)
process_kwargs = process_kwargs or {}
kwargs = dict(

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this also override self.env and self.cwd? I guess it's best to merge env, cwd passed via process_kwargs

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good point, I'll merge env instead of overwriting it. This will overwrite cwd if it's passed in, which should be the expected behavior, right?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants