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 19
19
# poetry/requests-3, I was not allowed to install pip! So I did not pursue this
20
20
# option further.
21
21
#
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
24
25
# confusing).
25
26
#
26
27
# We can't use the environment variable POETRY_VIRTUALENVS_OPTIONS_NO_PIP because it
27
28
# does not work, see https://github.com/python-poetry/poetry/issues/5906
28
29
import site
29
- print (site .getsitepackages ()[0 ])
30
+ print (site .getsitepackages ()[- 1 ])
You can’t perform that action at this time.
0 commit comments