Skip to content

Commit 92f9114

Browse files
committed
Fix: reflect subfolder in source path check for shared assets
1 parent b1b450a commit 92f9114

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

reflex/assets.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def asset(
7373
assert module is not None
7474

7575
external = constants.Dirs.EXTERNAL_APP_ASSETS
76-
src_file_shared = Path(calling_file).parent / path
76+
src_file_shared = Path(calling_file).parent / (Path(subfolder) / path if subfolder else path)
7777
if not src_file_shared.exists():
7878
msg = f"File not found: {src_file_shared}"
7979
raise FileNotFoundError(msg)

0 commit comments

Comments
 (0)