def GetUserApp(self, script):


    vm_runtime = self.appinfo_external.vm_settings.get('vm_runtime')
    if vm_runtime in ['python27', 'custom']:
      app = _AppFrom27StyleScript(script)
    elif vm_runtime == 'python':
      with _MockedWsgiHandler.python_25_app_lock:
        app = _AppFrom25StyleScript(script)
    else:
      raise ValueError('Unexpected runtime: %s' % vm_runtime)


    vmstub.app_is_loaded = True

    return app
Extracts the user's app given a script specification.
dataset/ETHPy150Open GoogleCloudPlatform/python-compat-runtime/appengine-compat/exported_appengine_sdk/google/appengine/ext/vmruntime/meta_app.py/MetaWSGIApp.GetUserApp