-
-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Labels
featureNew feature or requestNew feature or request
Description
Is your feature request related to a problem? Please describe.
I use coverage.py and coverage-enable-subprocess to run my tests with coverage.
This requires a environment variable TOP to be set to the project root directory
Describe the solution you'd like
I would like to use a option like extra_env={...} to add environment variables
with ctx.options(extra_env={"TOP": str(Path.cwd())}):
ctx.run(...) # TOP is used
# TOP is not usedI searched for something like this in your docs, because it is possible to set the cwd via an option and I expected that there would also be an option for environment variables.
Describe alternatives you've considered
My current solution is this
os.environ["TOP"]=str(Path.cwd())This works, but I think the other solution would be cleaner.
Additional context
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
featureNew feature or requestNew feature or request