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 -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/AOUNEH6HA6QC7KE7WRRYXSP6FSVOTJ5P/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to