about summary refs log tree commit diff
diff options
context:
space:
mode:
authoruser@node5.net <user@node5.net>2026-05-19 19:02:52 +0200
committeruser@node5.net <user@node5.net>2026-05-19 19:02:52 +0200
commit1025ebc6ba8718ee85980a4a20129cad5a38ada0 (patch)
tree4a3a26f20c780e80426e2b1e1a24443b97a4bb84
parentd9821b300071ce4439c20e1b4e0527e3caa03db7 (diff)
fix relative pathing to source content
-rw-r--r--src/blog_node5_net.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/blog_node5_net.py b/src/blog_node5_net.py
index c9e4e1d..785fe1c 100644
--- a/src/blog_node5_net.py
+++ b/src/blog_node5_net.py
@@ -70,10 +70,10 @@ if len(sys.argv) > 1 and sys.argv[1] == 'validate':
     logger.info('OK')
     exit(0)
 
-template_path = os.path.join('..', content_root_path, 'templates')
+template_path = os.path.join(os.path.abspath(content_root_path), 'templates')
 logger.debug(f"template path: {template_path}")
 app = flask.Flask(__name__, template_folder=template_path,
-                  static_folder=os.path.join('..', content_root_path, 'static'), static_url_path='')
+                  static_folder=os.path.join(os.path.abspath(content_root_path), 'static'), static_url_path='')
 with open(os.path.join(content_root_path, 'motd.md'), 'r') as file:
     motd_list = [markupsafe.Markup(markdown.markdown(line)) for line in file.readlines()]