diff --git a/reflex/assets.py b/reflex/assets.py index 693041b7a1..adf56bf057 100644 --- a/reflex/assets.py +++ b/reflex/assets.py @@ -73,7 +73,7 @@ def asset( assert module is not None external = constants.Dirs.EXTERNAL_APP_ASSETS - src_file_shared = Path(calling_file).parent / path + src_file_shared = Path(calling_file).parent / (Path(subfolder) / path if subfolder else path) if not src_file_shared.exists(): msg = f"File not found: {src_file_shared}" raise FileNotFoundError(msg)