Abspath for templates folder in Flask is surprising?
I think you should use os.path.abspath("app/template_folder")
I am building a Flask project. My "templates" folder is a subdirectory of "app" folder. The code starts in styleprive.py which is in app with the line "From app import app". This triggers init.py inside app.
When I run:
os.path.abspath(app.template_folder)
The result is surprising I think: /Users/egarcialopez/local_programming/styleprive/templates
and not /Users/egarcialopez/local_programming/styleprive/app/templates
Why does app not show up?
Thank you