We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b1b450a commit 92f9114Copy full SHA for 92f9114
reflex/assets.py
@@ -73,7 +73,7 @@ def asset(
73
assert module is not None
74
75
external = constants.Dirs.EXTERNAL_APP_ASSETS
76
- src_file_shared = Path(calling_file).parent / path
+ src_file_shared = Path(calling_file).parent / (Path(subfolder) / path if subfolder else path)
77
if not src_file_shared.exists():
78
msg = f"File not found: {src_file_shared}"
79
raise FileNotFoundError(msg)
0 commit comments