testing .. I am really confused about how to handle the change of repos from /home/amit to /home/hg
authoramit@thunder
Mon, 22 Feb 2010 18:22:21 +0530
changeset 22 a27f1e69d966
parent 21 5f66214fce86
child 23 d2855b0d6df8
testing .. I am really confused about how to handle the change of repos from /home/amit to /home/hg
SEESenv/web/hgbook/run.wsgi
SEESenv/web/hgbook/run.wsgi~
--- a/SEESenv/web/hgbook/run.wsgi	Mon Feb 22 18:19:02 2010 +0530
+++ b/SEESenv/web/hgbook/run.wsgi	Mon Feb 22 18:22:21 2010 +0530
@@ -30,7 +30,8 @@
 print >>sys.stderr , "My Review App running"
 
 home_dir=os.getenv("HOME")
-if home_dir=='/home/amit' or home_dir==None:
+print >> sys.stderr , home_dir
+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:
--- a/SEESenv/web/hgbook/run.wsgi~	Mon Feb 22 18:19:02 2010 +0530
+++ b/SEESenv/web/hgbook/run.wsgi~	Mon Feb 22 18:22:21 2010 +0530
@@ -30,13 +30,14 @@
 print >>sys.stderr , "My Review App running"
 
 home_dir=os.getenv("HOME")
+print >> sys.stderr , home_dir
 if home_dir=='/home/amit' or home_dir==None:
     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')
-print sys.path
+print >> sys.stderr , sys.path
 os.environ['DJANGO_SETTINGS_MODULE'] = 'hgbook.settings'
 
 import django.core.handlers.wsgi