BUG/MAJOR: Define PYTHONPATH dynamically
This commit is contained in:
parent
76edc53056
commit
c5db992f1e
|
@ -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__':
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue