1
0
Fork 0
mirror of https://github.com/sileht/bird-lg.git synced 2024-11-21 22:44:43 +01:00

Detect site path

This commit is contained in:
Mehdi Abaakouk 2012-08-21 09:27:52 +02:00 committed by root
parent ea5563fe81
commit f30939f764

View file

@ -1,5 +1,8 @@
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