def virtualenv_exists(directory):
 return is_file(posixpath.join(directory, 'bin', 'python'))

def virtualenv_exists ( directory ) : return is_file ( posixpath . join ( directory , 'bin' , 'python' ) )
check if a python virtual environment_ exists .