This is an automated email from the ASF dual-hosted git repository.
gstein pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/steve.git
The following commit(s) were added to refs/heads/trunk by this push:
new 5fd4e9a ensure the path for static files
5fd4e9a is described below
commit 5fd4e9abb4e46b54ae4640e35832dc33fc11f28f
Author: Greg Stein <[email protected]>
AuthorDate: Mon Oct 27 03:40:56 2025 -0500
ensure the path for static files
---
v3/server/pages.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/v3/server/pages.py b/v3/server/pages.py
index 7a998aa..70d48d3 100644
--- a/v3/server/pages.py
+++ b/v3/server/pages.py
@@ -427,10 +427,10 @@ async def about_page():
# Route to serve static files (CSS and JS)
@APP.route('/static/<path:filename>')
async def serve_static(filename):
- return await quart.send_from_directory('static', filename)
+ return await quart.send_from_directory(THIS_DIR / 'static', filename)
@APP.route('/favicon.ico')
async def serve_favicon():
- return await quart.send_from_directory('static', 'favicon.ico')
+ return await quart.send_from_directory(THIS_DIR / 'static', 'favicon.ico')
def format_datetime(dt):