def _disable_venv ( self , env ) : venv = env . pop ( 'VIRTUAL_ENV' , None ) if venv : venv_path , sep , env [ 'PATH' ] = env [ 'PATH' ] . partition ( os . pathsep )
python virtualenv how to deactivate
Disable virtualenv and venv in the environment .
def _disable_venv(self, env):
        """
        Disable virtualenv and venv in the environment.
        """
        venv = env.pop('VIRTUAL_ENV', None)
        if venv:
            venv_path, sep, env['PATH'] = env['PATH'].partition(os.pathsep)