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

Running from within a virtualenv #51

Open
tilsche opened this issue Jun 3, 2022 · 1 comment
Open

Running from within a virtualenv #51

tilsche opened this issue Jun 3, 2022 · 1 comment
Labels
documentation Improvements or additions to documentation

Comments

@tilsche
Copy link

tilsche commented Jun 3, 2022

I wanted to use tox --current-env from within a virtualenv. I could not find anything in the README indicating that it doesn't fundamentally work.

However, since tox-current-env just symlinks the python executable of the virtualenv, the normal mechanism of virtualenv to set sys.path relative to the path of the python executable does not seem to apply and none of the site-packages of the virtualenv are available in tox-current-env's fake virtualenv.

I'm wondering if this is intentional, then maybe the documentation could be improved. Otherwise maybe symlink the lib directory of the virtualenv or possibly setting PYTHONPATH could help such that tox-current-env also works out of a virtualenv.

@hroncok
Copy link
Member

hroncok commented Jun 3, 2022

Hey. Yes, this won't work.

See for example #44

If you have suggestions to improve the documentation, I would gladly review that.

@hroncok hroncok added the documentation Improvements or additions to documentation label Jun 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants