Skip to content

Commit 4a7dc8d

Browse files
authored
fix(static_assets): Need the directory containing the app.py, not the file itself (#1219)
1 parent afa9da3 commit 4a7dc8d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

shiny/_app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ def __init__(
153153
raise ValueError(
154154
f'static_assets must be an absolute path: "{static_asset_path}".'
155155
" Consider using one of the following instead:\n"
156-
f' os.path.join(__file__, "{static_asset_path}") OR'
156+
f' os.path.join(os.path.dirname(__file__), "{static_asset_path}") OR'
157157
f' pathlib.Path(__file__).parent/"{static_asset_path}"'
158158
)
159159

0 commit comments

Comments
 (0)