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
1 changed files with 4 additions and 1 deletions

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