SEESenv/web/hgbook/run.wsgi
changeset 6 1ce9b33fb6ff
parent 3 6cee07c589cb
child 9 ab616eb10878
--- 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
@@ -1,5 +1,9 @@
-ALLDIRS = ['/home/hg/repos/SEES-hacks/SEESenv/lib/python2.6/site-packages']
-
+import os
+home_dir=os.getenv("HOME")
+if home_dir=='/home/amit':
+    ALLDIRS = ['/home/amit/SEES-hacks/SEESenv/lib/python2.6/site-packages']
+else:
+    ALLDIRS = ['/home/hg/repos/SEES-hacks/SEESenv/lib/python2.6/site-packages']
 import sys 
 import site 
 
@@ -21,8 +25,13 @@
 import os
 import sys
 import django
-sys.path.append('/home/hg/repos/SEES-hacks/SEESenv/web/')
-sys.path.append('/home/hg/repos/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()