-
-
Notifications
You must be signed in to change notification settings - Fork 173
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
Passing environment variables to CmdAction is broken #171
Comments
Yes. broken 😞
I would rather manipulate the
Could please provide a patch including unit-tests? |
I actually meant a temporary workaround for people using the broken version of Pydoit ;-) As for actually fixing it: I'd cetainly be happy to provide a pull request. It's not something I have time for right away, but I'll see if there's some time on the weekend. Thanks for the quick response! |
This exercises issue pydoit#171.
This fixes issue pydoit#171.
This exercises issue pydoit#171.
This fixes issue pydoit#171.
It seems that d58a73 broke the ability to pass environment variables into
CmdAction
: if I now pass theenv
kwarg into theCmdAction
constructor, this leads to a traceback:File "/Users/onno/anaconda/envs/p3/lib/python3.5/site-packages/doit/action.py", line 204, in execute **self.pkwargs) TypeError: type object got multiple values for keyword argument 'env'
A minimal
dodo.py
to reproduce:I guess that a workaround might be to prepend the environment variables to be set to the shell command string.
The text was updated successfully, but these errors were encountered: