Skip to content

Instantly share code, notes, and snippets.

@kamyar1979
Created August 21, 2012 17:30
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save kamyar1979/3417562 to your computer and use it in GitHub Desktop.
Paste.Deploy general ISAIP-WSGI dll maker file for IIS.
import os,sys
import isapi_wsgi
if hasattr(sys, "isapidllhandle"):
import win32traceutil
appdir = r'D:\Web\Rhodecode\\'
# The entry points for the ISAPI extension.
def __ExtensionFactory__():
from paste.deploy import loadapp
pylonsapp = loadapp('config:' + appdir + 'production.ini', relative_to=appdir)
#traceon = 1
return isapi_wsgi.ISAPIThreadPoolHandler(pylonsapp)
if __name__=='__main__':
# If run from the command-line, install ourselves.
from isapi.install import *
params = ISAPIParameters()
# Setup the virtual directories - this is a list of directories our
# extension uses - in this case only 1.
# Each extension has a "script map" - this is the mapping of ISAPI
# extensions.
sm = [ScriptMapParams(Extension="*", Flags=0)]
HandleCommandLine(params)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment