Did I find the right examples for you? yes no

All Samples(2)  |  Call(1)  |  Derive(0)  |  Import(1)
returns current pip installation path 

        def get_existing_pip_installation():
    """ returns current pip installation path """
    if run("pip freeze|grep confine-controller", err_codes=[0,1]).return_code == 0:
        for lib_path in get_python_lib(), get_python_lib(prefix="/usr/local"):
            existing_path = os.path.abspath(os.path.join(lib_path, "controller"))
            if os.path.exists(existing_path):
                return existing_path
    return None

src/c/o/confine-controller-0.10.5/controller/management/commands/upgradecontroller.py   confine-controller(Download)
from controller import get_version
from controller.utils import get_existing_pip_installation
from controller.utils.system import run, check_root
    def handle(self, *args, **options):
        current_version = get_version()
        current_path = get_existing_pip_installation()
#        # Getting version that will be installed, yeah pip doesn't support it :)