mirror of
https://github.com/sileht/bird-lg.git
synced 2025-02-16 16:40:29 +01:00
Detect site path
This commit is contained in:
parent
ea5563fe81
commit
f30939f764
1 changed files with 4 additions and 1 deletions
5
lg.wsgi
5
lg.wsgi
|
@ -1,5 +1,8 @@
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
sys.path.insert(0,"/var/www/lg2.tetaneutral.net/")
|
import os
|
||||||
|
|
||||||
|
sitepath = os.path.realpath(os.path.dirname(sys.argv[0]))
|
||||||
|
sys.path.insert(0, sitepath)
|
||||||
|
|
||||||
from lg import app as application
|
from lg import app as application
|
||||||
|
|
Loading…
Add table
Reference in a new issue