def CheckScriptExists(cgi_path, handler_path):
 if handler_path.startswith((PYTHON_LIB_VAR + '/')):
  return
 if ((not os.path.isdir(cgi_path)) and (not os.path.isfile(cgi_path)) and os.path.isfile((cgi_path + '.py'))):
  raise CouldNotFindModuleError(('Perhaps you meant to have the line "script: %s.py" in your app.yaml' % handler_path))

def CheckScriptExists ( cgi_path , handler_path ) : if handler_path . startswith ( ( PYTHON_LIB_VAR + '/' ) ) : return if ( ( not os . path . isdir ( cgi_path ) ) and ( not os . path . isfile ( cgi_path ) ) and os . path . isfile ( ( cgi_path + '.py' ) ) ) : raise CouldNotFindModuleError ( ( 'Perhaps you meant to have the line "script: %s.py" in your app.yaml' % handler_path ) )
check that the given handler_path is a file that exists on disk .