Winand

Untitled

Jan 4th, 2013
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.39 KB | None | 0 0
  1. #wsgi script
  2. import sys, os
  3. rootdir=os.path.dirname(__file__)
  4. if not rootdir in sys.path:
  5.     sys.path.append(rootdir)
  6. import testing #wsgihandler
  7. application=testing.application
  8.  
  9. #testing.py
  10. print "!!! IMPORT !!!"
  11. x=0
  12. def application(environ, start_response):
  13.     global x
  14.     x+=1
  15.     print "???", x
  16.     start_response("200 OK", [('Content-Type', 'text/html')])
  17.     return ["HELLO"]
Advertisement
Add Comment
Please, Sign In to add comment