<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -19,9 +19,16 @@
 # along with translate; if not, write to the Free Software
 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
-import syspath_override
 
 import os
+
+# this part is only required when running from checkout instead of an install
+import sys
+ROOT_DIR = os.path.abspath(os.path.dirname(__file__))
+sys.path.insert(0, ROOT_DIR) # Top level directory
+import syspath_override
+# comment the above lines if running from install
+
 os.environ['DJANGO_SETTINGS_MODULE'] = 'pootle.settings'
 
 import django.core.handlers.wsgi</diff>
      <filename>wsgi.py</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>33423bea18dff52e007c5d2f357b92ac75ad7743</id>
    </parent>
  </parents>
  <author>
    <name>alaaosh</name>
    <email>alaaosh@54714841-351b-0410-a198-e36a94b762f5</email>
  </author>
  <url>http://github.com/translateorgza/pootle/commit/ae1c635c9a5babb5d2d68b4562e3f1c38358e5c9</url>
  <id>ae1c635c9a5babb5d2d68b4562e3f1c38358e5c9</id>
  <committed-date>2009-09-03T14:01:38-07:00</committed-date>
  <authored-date>2009-09-03T14:01:38-07:00</authored-date>
  <message>you can't import syspath_override without putting the Pootle directory itself in syspath first (or maybe this should be done in apache?)

git-svn-id: https://translate.svn.sourceforge.net/svnroot/translate/src/trunk/Pootle@12273 54714841-351b-0410-a198-e36a94b762f5</message>
  <tree>f172963f6eab0095d679c254d5566455d7606833</tree>
  <committer>
    <name>alaaosh</name>
    <email>alaaosh@54714841-351b-0410-a198-e36a94b762f5</email>
  </committer>
</commit>
