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