To get around the fact that activating a virtualenv requires setting
environment variables in the current shell poetry has a shell command that
simply spawns a new shell with the appropriate environment variables:
https://python-poetry.org/docs/cli/#shell
So a cross-platform `activate` command wouldn't be possible but something like
this could:
$ python -m venv venv_name shell
(venv_name) $ # the virtualenv is now active
(venv_name) $ exit
$ # back into the parent shell
_______________________________________________
Python-ideas mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at
https://mail.python.org/archives/list/[email protected]/message/AOUNEH6HA6QC7KE7WRRYXSP6FSVOTJ5P/
Code of Conduct: http://python.org/psf/codeofconduct/