Browse files

Updating wsgi file to run standalone.

  • Loading branch information...
1 parent 69a8aa1 commit e9618d5d10b41fb940998997ad88d53db3ee2f23 @brandonsavage brandonsavage committed Sep 20, 2012
Showing with 11 additions and 0 deletions.
  1. +11 −0 wsgi/tuxedo.wsgi
View
11 wsgi/tuxedo.wsgi
@@ -1,5 +1,16 @@
import os
import site
+import sys
+
+current_dir = os.path.abspath(os.path.dirname(__file__))
+
+ALLDIRS = []
+
+ALLDIRS.append(os.path.abspath('%s/../vendor/lib/python' % current_dir))
+ALLDIRS.append(os.path.abspath('%s/../vendor/src' % current_dir))
+
+for item in ALLDIRS:
+ sys.path.append(item)
import django.core.handlers.wsgi

0 comments on commit e9618d5

Please sign in to comment.