New issue 341: Set environment variables based on ones in original environment
https://bitbucket.org/hpk42/tox/issues/341/set-environment-variables-based-on-ones-in

Aleks Bunin:

Up until 2.0 and full isolation, I had access to all variables I desired. Later 
-- I need to pass variables to the tox environment. 

I need to have ability to either rename variable when it passed to the test 
environment.


For example, in my tests, I need to know where to get external executable, 
which is different in every virtualenv from which I will run tox. 


For example:

Let's say I'm in virtualenv and have executable `$VIRTUAL_ENV/v`. I have 
`VPATH` variable which points me to it. In tox virtualenvs I'll need to setup 
new `VPATH` which will point `{envdir}/v`. 

Currently I have to set VPATH_OUTSIDE prior to starting tox and use 
`pass=VPATH_OUTSIDE` in the `[testenv]`. 

How do I pass original VPATH?

I'd want something like this:

```
[testenv]
setenv=
    VPATH_OUTSIDE={passenv:VPATH}
```

I've looked through the doc and didn't find usable solution. 


_______________________________________________
pytest-commit mailing list
pytest-commit@python.org
https://mail.python.org/mailman/listinfo/pytest-commit

Reply via email to