Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow process kwargs to get passed into manager #213

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

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.

None yet

3 participants