Commits

Anonymous committed 760098d

Added win32traceutil
moved MoinMoin import into extension factory for performance boost

Comments (0)

Files changed (1)

moin.isapi-wsgi.py

 import sys
 import os
 
+if hasattr(sys, "isapidllhandle"):
+	import win32traceutil
+	print('starting...')
+
 appdir = os.path.dirname(__file__)
 
 # a) Configuration of Python's code search path
 #os.environ['MOIN_DEBUG'] = '1'
 
 
-from MoinMoin.server.server_wsgi import moinmoinApp
 import isapi_wsgi
 import isapi
 
 def factory():
 	"The entry point for when the ISAPIDLL is triggered"
 	try:
+		from MoinMoin.server.server_wsgi import moinmoinApp
 		return isapi_wsgi.ISAPISimpleHandler(moinmoinApp())
 	except:
 		print("Traceback occurred starting up the application")