--- a/SEESenv/web/hgbook/run.wsgi~ Sat Feb 13 13:32:38 2010 +0530
+++ b/SEESenv/web/hgbook/run.wsgi~ Sun Feb 21 13:14:37 2010 +0530
@@ -21,8 +21,13 @@
import os
import sys
import django
-sys.path.append('/home/amit/SEES-hacks/SEESenv/web/')
-sys.path.append('/home/amit/SEES-hacks/SEESenv/web/hgbook/comments')
+home_dir=os.getenv("HOME")
+if home_dir=='/home/amit':
+ sys.path.append('/home/amit/SEES-hacks/SEESenv/web/')
+ sys.path.append('/home/amit/SEES-hacks/SEESenv/web/hgbook/comments')
+else:
+ sys.path.append('/home/hg/repos/SEES-hacks/SEESenv/web/')
+ sys.path.append('/home/hg/repos/SEES-hacks/SEESenv/web/hgbook/comments')
os.environ['DJANGO_SETTINGS_MODULE'] = 'hgbook.settings'
import django.core.handlers.wsgi
application = django.core.handlers.wsgi.WSGIHandler()