Skip to content

Commit

Permalink
Merge pull request #223 from FlaskCon/fix-wsgi-path
Browse files Browse the repository at this point in the history
fix: wsgi path
  • Loading branch information
Abdur-rahmaanJ authored Apr 11, 2022
2 parents 20d88c4 + 91e0439 commit c6e4665
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions traveller/wsgi.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,14 @@
## ...or uploaded files to the directory "myproject", then you should
## specify "/home/appinv/myproject"
# on shell do pwd to get a path like this:'/home2/folder/shopyo/shopyo' set path to this
path = ""

base_path = os.path.dirname(os.path.abspath(__file__))
path = base_path
if path not in sys.path:
sys.path.insert(0, path)
#
from app import create_app # noqa
base_path = os.path.dirname(os.path.abspath(__file__))




Expand Down

0 comments on commit c6e4665

Please sign in to comment.