From f30939f764cebbb0c4866158d47f5e34aff410df Mon Sep 17 00:00:00 2001 From: Mehdi Abaakouk Date: Tue, 21 Aug 2012 09:27:52 +0200 Subject: [PATCH] Detect site path --- lg.wsgi | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lg.wsgi b/lg.wsgi index 0ee538e..1fd87b3 100644 --- a/lg.wsgi +++ b/lg.wsgi @@ -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