[mod_python] win32 in mod_python

Naveen Garg naveen.garg at gmail.com
Thu Jun 4 00:31:48 EDT 2009

I have a working test installation of mod_python.
But, the following code does not seem to run in my mod_python handler:

from mod_python import apache
import win32api
import win32com.client
shell = win32com.client.Dispatch("WScript.Shell")
def handler(req):
    req.content_type = 'text/plain'
    req.write("Hello Wordfd2!")
    return apache.OK

Is their a security setting that turns off access to win32com, etc...?

What I really want to do is use cdll.LoadLibrary from mod_python as a bridge
to other dll's without having to compile another apache module from scratch.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mm_cfg_has_not_been_edited_to_set_host_domains/pipermail/mod_python/attachments/20090604/72f9ca3e/attachment.html

More information about the Mod_python mailing list