BUG/MAJOR: Define PYTHONPATH dynamically

This commit is contained in:
Bertrand Jacquin 2016-11-02 01:00:25 +00:00
parent 76edc53056
commit c5db992f1e
No known key found for this signature in database
GPG Key ID: 5534871F2E2E93DA
2 changed files with 6 additions and 2 deletions

View File

@ -1,9 +1,10 @@
#!/usr/bin/env python2.7
from flup.server.fcgi import WSGIServer
import sys
sys.path.insert(0, '/var/www/extra_server/')
import sys, os
sys.path.append(os.path.dirname(os.path.realpath(__file__)))
from extra import app as application
if __name__ == '__main__':

View File

@ -1,3 +1,6 @@
#!/usr/bin/env python
import sys, os
sys.path.append(os.path.dirname(os.path.realpath(__file__)))
from extra import app as application