Examples/modpython_dbg.py

Thu, 29 Aug 2019 19:15:21 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Thu, 29 Aug 2019 19:15:21 +0200
branch
without_py2_and_pyqt4
changeset 7182
49a01a143491
parent 0
de9c2efb9d02
permissions
-rw-r--r--

Created new branch <without_py2_and_pyqt4> to start work on eliminating Python2 and PyQt4 for executing eric6.

from mod_python import apache

apache.initDebugger('/Path/To/modpython_dbg.py')

def handler(req):
    req.content_type = "text/plain"
    req.send_http_header()
    req.write("Hello World!\n")

    return apache.OK

eric ide

mercurial