Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Symlinked home directories prevents pipsi list from working #147

Open
alexseitsinger opened this issue May 24, 2018 · 0 comments
Open

Symlinked home directories prevents pipsi list from working #147

alexseitsinger opened this issue May 24, 2018 · 0 comments

Comments

@alexseitsinger
Copy link

alexseitsinger commented May 24, 2018

On FreeBSD its common for /home/{name} to be symlinked to /usr/home/{name}. Without this adjustment, the paths never match the target path provided in args. The following code in list_everything, found in pipsi.py (python 2), fixes the issue.

def _find_venv(target): # Fix for base_prefix being a symlink to the real directory. # (eg: /home/<name>/ -> /usr/home/<name>/) for venv in venvs: base_prefix = join(self.home, venv, "") real_prefix = os.path.realpath(base_prefix) if target.startswith(real_prefix): return venv

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants