Use absolute path for template

This commit is contained in:
Louis Vézina 2017-10-21 20:43:32 -04:00
parent 7a6ce403c8
commit fb655fb0c3
1 changed files with 1 additions and 0 deletions

View File

@ -2,6 +2,7 @@ from bottle import route, run, template, static_file, request, redirect
import bottle
bottle.debug(True)
bottle.TEMPLATES.clear()
bottle.TEMPLATE_PATH.insert(0,os.path.join(os.path.dirname(__file__), 'views/'))
import sqlite3
import os