From 02f667a6d15d5addb9c402aa8159879b241a52ba Mon Sep 17 00:00:00 2001 From: Garrick Aden-Buie Date: Wed, 13 Mar 2024 16:54:09 -0400 Subject: [PATCH] fix(static_assets): Need the directory containing the `app.py`, not the file itself --- shiny/_app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shiny/_app.py b/shiny/_app.py index c2c187d5d..f78b0b180 100644 --- a/shiny/_app.py +++ b/shiny/_app.py @@ -153,7 +153,7 @@ def __init__( raise ValueError( f'static_assets must be an absolute path: "{static_asset_path}".' " Consider using one of the following instead:\n" - f' os.path.join(__file__, "{static_asset_path}") OR' + f' os.path.join(os.path.dirname(__file__), "{static_asset_path}") OR' f' pathlib.Path(__file__).parent/"{static_asset_path}"' )