summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBertrand Jacquin <bertrand@jacquin.bzh>2016-11-02 01:00:25 +0000
committerBertrand Jacquin <bertrand@jacquin.bzh>2016-11-02 01:01:08 +0000
commitc5db992f1e5cf62b59d419432043048b3417a365 (patch)
tree8db10a285c17d34000ad189f8dc919750a681453
parent76edc5305639f9b01979eefc44d0a3bbb3025933 (diff)
BUG/MAJOR: Define PYTHONPATH dynamically
-rwxr-xr-xpublic_html/extra.fcgi5
-rw-r--r--public_html/extra.wsgi3
2 files changed, 6 insertions, 2 deletions
diff --git a/public_html/extra.fcgi b/public_html/extra.fcgi
index c47e47b..be338ba 100755
--- a/public_html/extra.fcgi
+++ b/public_html/extra.fcgi
@@ -1,9 +1,10 @@
1#!/usr/bin/env python2.7 1#!/usr/bin/env python2.7
2 2
3from flup.server.fcgi import WSGIServer 3from flup.server.fcgi import WSGIServer
4import sys
5 4
6sys.path.insert(0, '/var/www/extra_server/') 5import sys, os
6sys.path.append(os.path.dirname(os.path.realpath(__file__)))
7
7from extra import app as application 8from extra import app as application
8 9
9if __name__ == '__main__': 10if __name__ == '__main__':
diff --git a/public_html/extra.wsgi b/public_html/extra.wsgi
index d446325..5df2e42 100644
--- a/public_html/extra.wsgi
+++ b/public_html/extra.wsgi
@@ -1,3 +1,6 @@
1#!/usr/bin/env python 1#!/usr/bin/env python
2 2
3import sys, os
4sys.path.append(os.path.dirname(os.path.realpath(__file__)))
5
3from extra import app as application 6from extra import app as application