1
1
Fork 0
mirror of https://github.com/pypa/pip synced 2023-12-13 21:30:23 +01:00

fixed missing BadCommand exception class

This commit is contained in:
Kenneth Belitzky 2009-08-27 22:36:34 -03:00
parent 3dae23ee8d
commit cab4358bc7

3
pip.py
View file

@ -40,6 +40,9 @@ class InstallationError(Exception):
class DistributionNotFound(InstallationError):
"""Raised when a distribution cannot be found to satisfy a requirement"""
class BadCommand(Exception):
"""Raised when virtualenv is not found"""
if getattr(sys, 'real_prefix', None):
## FIXME: is build/ a good name?
base_prefix = os.path.join(sys.prefix, 'build')