Permalink
Browse files

Fix wiki.py so that it sets the cwd correctly when it tries to run.

  • Loading branch information...
1 parent d7c18da commit 55fe3a54945a382abe0ca9e9438c483acc626480 @csnover csnover committed Feb 9, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 wiki.py
View
@@ -5,6 +5,10 @@
"""
import os, os.path,sys,cherrypy
+
+# this code is path sensitive, so make sure we have the correct one
+os.chdir(os.path.dirname(os.path.abspath(__file__)))
+
sys.path.append(os.path.join(os.path.dirname(__file__), "src"))
from auth import AuthController
from docserver import Wiki

0 comments on commit 55fe3a5

Please sign in to comment.