1. Armin Ronacher
  2. pip

Commits

Jannis Leidel  committed b5d244e

Expand virtualenv path correctly if passed starting with ~

  • Participants
  • Parent commits e4f0bd3
  • Branches trunk

Comments (0)

Files changed (1)

File pip.py

View file
     """
     Restart this script using the interpreter in the given virtual environment
     """
+    if venv.startswith('~'):
+        venv = os.path.expanduser(venv)
     venv = os.path.abspath(venv)
     if not os.path.exists(venv):
         try: