summaryrefslogtreecommitdiffhomepage
path: root/test/python/path
diff options
context:
space:
mode:
authorAndrei Belov <defan@nginx.com>2021-02-04 18:40:45 +0300
committerAndrei Belov <defan@nginx.com>2021-02-04 18:40:45 +0300
commit0997fa324ca523ab282f595ac9f44b3e4daff86a (patch)
tree37424fff265780f34f9a9adb7ddd7501a67843f1 /test/python/path
parent2bc99c614d5547e773bda73364efada47f0a37bf (diff)
parent774a6034d9daf32ac6c98da7e4c0ca9e820536b4 (diff)
downloadunit-0997fa324ca523ab282f595ac9f44b3e4daff86a.tar.gz
unit-0997fa324ca523ab282f595ac9f44b3e4daff86a.tar.bz2
Merged with the default branch.
Diffstat (limited to 'test/python/path')
-rw-r--r--test/python/path/wsgi.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/python/path/wsgi.py b/test/python/path/wsgi.py
new file mode 100644
index 00000000..2807f6ef
--- /dev/null
+++ b/test/python/path/wsgi.py
@@ -0,0 +1,8 @@
+import os
+import sys
+
+def application(environ, start_response):
+ body = os.pathsep.join(sys.path).encode()
+
+ start_response('200', [('Content-Length', str(len(body)))])
+ return [body]