File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 1919 # poetry/requests-3, I was not allowed to install pip! So I did not pursue this
2020 # option further.
2121 #
22- # Instead, local testing shows that first entry of `site.getsitepackages()` has the
23- # right path, whereas `site.getusersitepackages()` is about the system python (very
22+ # Instead, testing (on both Windows and Linux) shows that the last entry of
23+ # `site.getsitepackages()` has the right path (note: On linux there is only a single
24+ # entry), whereas `site.getusersitepackages()` is about the system python (very
2425 # confusing).
2526 #
2627 # We can't use the environment variable POETRY_VIRTUALENVS_OPTIONS_NO_PIP because it
2728 # does not work, see https://github.com/python-poetry/poetry/issues/5906
2829 import site
29- print (site .getsitepackages ()[0 ])
30+ print (site .getsitepackages ()[- 1 ])
You can’t perform that action at this time.
0 commit comments