env: fix check whether path is relative to system site packages (#9861)
We must not use `SystemEnv`, which is Poetry's own env, but `env.parent_env`, which is the base env where the system site packages (in the context of the virtual env) are located.
Loading
Please register or sign in to comment