def file_like(name):
 return (os.path.exists(name) or os.path.dirname(name) or name.endswith('.py') or (not ident_re.match(os.path.splitext(name)[0])))

def file_like ( name ) : return ( os . path . exists ( name ) or os . path . dirname ( name ) or name . endswith ( '.py' ) or ( not ident_re . match ( os . path . splitext ( name ) [ 0 ] ) ) )
a name is file-like if it is a path that exists .