Skip to content

Commit

Permalink
Path in app.wsgi
Browse files Browse the repository at this point in the history
  • Loading branch information
MarrekNozka committed Mar 8, 2014
1 parent e164504 commit df2d79e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app.wsgi
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
# Change working directory so relative paths (and template lookup) work again
import os, sys
os.chdir(os.path.dirname(__file__))
sys.path.insert(0, '.')

dir=os.path.dirname(__file__)
os.chdir( dir )
sys.path.insert(0, dir )

import webpwgen
application = webpwgen.app

0 comments on commit df2d79e

Please sign in to comment.