def __ExtensionFactory__(): import os import sys path = os.path.dirname(os.path.abspath(__file__)) os.chdir(path) sys.path = [path] + [p for p in sys.path if not p == path] import gluon.main import isapi_wsgi application = gluon.main.wsgibase return isapi_wsgi.ISAPIThreadPoolHandler(application)
def __ExtensionFactory__(): import os import sys path = os.path.dirname(os.path.abspath(__file__)) os.chdir(path) if not os.path.isdir('applications'): raise RuntimeError('Running from the wrong folder') sys.path = [path] + [p for p in sys.path if not p == path] import gluon.main import isapi_wsgi application = gluon.main.wsgibase return isapi_wsgi.ISAPIThreadPoolHandler(application)
def __ExtensionFactory__(): ## from paste.deploy import loadapp ## from paste.script.util.logging_config import fileConfig # <INSTALLDIR>\config\mapproxy.yaml yaml_file = os.path.abspath( os.path.join(mapproxy_root_dir, r'config', r'mapproxy.yaml')) from mapproxy.wsgiapp import make_wsgi_app # application = make_wsgi_app(r'C:\mapproxy\mapproxy.yaml') application = make_wsgi_app(yaml_file) import isapi_wsgi return isapi_wsgi.ISAPIThreadPoolHandler(application)
def __ExtensionFactory__(): return isapi_wsgi.ISAPIThreadPoolHandler(demo_app)