Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #wsgi script
- import sys, os
- rootdir=os.path.dirname(__file__)
- if not rootdir in sys.path:
- sys.path.append(rootdir)
- import testing #wsgihandler
- application=testing.application
- #testing.py
- print "!!! IMPORT !!!"
- x=0
- def application(environ, start_response):
- global x
- x+=1
- print "???", x
- start_response("200 OK", [('Content-Type', 'text/html')])
- return ["HELLO"]
Advertisement
Add Comment
Please, Sign In to add comment