def EndsWithPython(path):
 return (path and (PYTHON_BINARY_REGEX.search(path) is not None))

def EndsWithPython ( path ) : return ( path and ( PYTHON_BINARY_REGEX . search ( path ) is not None ) )
check if given path ends with a python 2 .