Skip to content

Commit 47a61e6

Browse files
committed
mkdir if it's missing
1 parent cf6de36 commit 47a61e6

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

reflex/app.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1315,6 +1315,7 @@ def memoized_toast_provider():
13151315
resulting_path = (
13161316
Path.cwd() / prerequisites.get_web_dir() / static_file_path
13171317
)
1318+
resulting_path.parent.mkdir(parents=True, exist_ok=True)
13181319
if isinstance(content, str):
13191320
resulting_path.write_text(content)
13201321
else:

reflex/plugins/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
11
"""Reflex Plugin System."""
2+
3+
from .base import CommonContext as CommonContext
4+
from .base import Plugin as Plugin
5+
from .base import PreCompileContext as PreCompileContext

0 commit comments

Comments
 (0)