def _IsFileOrDirWithFile(path):
 return (os.path.isfile(path) or (os.path.isdir(path) and os.path.isfile(os.path.join(path, 'include.yaml'))))

def _IsFileOrDirWithFile ( path ) : return ( os . path . isfile ( path ) or ( os . path . isdir ( path ) and os . path . isfile ( os . path . join ( path , 'include.yaml' ) ) ) )
determine if a path is a file or a directory with an appropriate file .