mirror of
https://github.com/zulip/zulip.git
synced 2025-11-05 06:23:38 +00:00
In virtualenv ≥ 20, the site_packages variable was removed from activate_this.py. To avoid a KeyError, replace activate_locals['site_packages'] with os.path.join(venv, 'lib', python_version), where python_version is the 'pythonX.Y' name of the directory where site-packages resides in the virtualenv. Fixes #14025.
871 B
871 B