From e81d6fc1c421480107f4135cb526c0b41221b5cf Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Thu, 6 Jun 2019 15:43:51 +0200 Subject: [PATCH] Fix tiny bug --- royalnet/__init__.py | 2 +- royalnet/web/blueprints/home/__init__.py | 2 ++ royalnet/web/blueprints/wikiview/__init__.py | 4 +++- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/royalnet/__init__.py b/royalnet/__init__.py index 366145d1..107eba53 100644 --- a/royalnet/__init__.py +++ b/royalnet/__init__.py @@ -1,5 +1,5 @@ from . import audio, bots, commands, database, network, utils, error, web -version = "5.0a13" +version = "5.0a14" __all__ = ["audio", "bots", "commands", "database", "network", "utils", "error", "web"] diff --git a/royalnet/web/blueprints/home/__init__.py b/royalnet/web/blueprints/home/__init__.py index d37e547e..c2b72967 100644 --- a/royalnet/web/blueprints/home/__init__.py +++ b/royalnet/web/blueprints/home/__init__.py @@ -1,7 +1,9 @@ import flask as f +import os from ... import Royalprint +tmpl_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'templates') bp = Royalprint("home", __name__, template_folder="templates") diff --git a/royalnet/web/blueprints/wikiview/__init__.py b/royalnet/web/blueprints/wikiview/__init__.py index 3430ef14..66ad9f00 100644 --- a/royalnet/web/blueprints/wikiview/__init__.py +++ b/royalnet/web/blueprints/wikiview/__init__.py @@ -2,11 +2,13 @@ import flask as f import markdown2 import re import uuid +import os from ... import Royalprint from ....database.tables import Royal, WikiPage, WikiRevision -bp = Royalprint("wikiview", __name__, url_prefix="/wikiview", template_folder="templates", +tmpl_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'templates') +bp = Royalprint("wikiview", __name__, url_prefix="/wikiview", template_folder=tmpl_dir, required_tables={Royal, WikiPage, WikiRevision})