Commits

Anonymous committed ae51427

Change boot.py to enable putting ``djangoappengine`` library on ``src/<project>`` directory.

  • Participants
  • Parent commits 708d82b

Comments (0)

Files changed (1)

 import os
 import sys
 
-PROJECT_DIR = os.path.abspath(os.path.dirname(os.path.dirname(__file__)))
+#
+# Put djangoappengine directory under src/libs directory like below
+#
+#   ROOT
+#   +- src              # Python Source directory
+#       +- <project>    # Project src directory
+#           +- __init__.py
+#           +- indexes.py
+#           +- manage.py
+#           +- settings.py
+#           +- urls.py
+#           *- autoload
+#           *- dbindexer
+#           *- django
+#           *- djangotoolbox
+#           *- djangoappengine
+#   +- templates        # Template directory
+#   +- static           # Static file directory
+#   +- app.yaml
+#   +- cron.yaml
+#   +- index.yaml
+#
+PROJECT_DIR = os.path.abspath(
+        os.path.dirname(
+            os.path.join(
+                os.path.dirname(__file__),
+                r'../../../'
+            )))
 DATA_ROOT = os.path.join(PROJECT_DIR, '.gaedata')
 
 # Overrides for os.environ