Browse Source

Fix issue with configuration file location (#281)

Shmavon Gazanchyan 8 years ago
parent
commit
4014b29bcf
1 changed files with 4 additions and 1 deletions
  1. 4 1
      wsgi.py

+ 4 - 1
wsgi.py

@@ -1,4 +1,7 @@
+import os
 from flaskbb import create_app
 
+basepath = os.path.dirname(os.path.abspath(__file__))
+
 # will throw an error if the config doesn't exist
-flaskbb = create_app(config="flaskbb.cfg")
+flaskbb = create_app(config=os.path.join(basepath, 'flaskbb.cfg'))