Skip to content

Commit 9b6e9d8

Browse files
committed
fix path to templates
1 parent a0c1012 commit 9b6e9d8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • packages/reflex-core/src/reflex_core/constants

packages/reflex-core/src/reflex_core/constants/base.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ class Reflex(SimpleNamespace):
9999
LOGS_DIR = DIR / "logs"
100100

101101
# The root directory of the reflex library.
102-
ROOT_DIR = Path(__file__).parents[2]
102+
ROOT_DIR = Path(__file__).parents[1]
103103

104104
RELEASES_URL = "https://api.github.com/repos/reflex-dev/templates/releases"
105105

@@ -143,7 +143,7 @@ class Dirs(SimpleNamespace):
143143
"""Folders used by the template system of Reflex."""
144144

145145
# The template directory used during reflex init.
146-
BASE = Reflex.ROOT_DIR / Reflex.MODULE_NAME / ".templates"
146+
BASE = Reflex.ROOT_DIR / ".templates"
147147
# The web subdirectory of the template directory.
148148
WEB_TEMPLATE = BASE / "web"
149149
# Where the code for the templates is stored.

0 commit comments

Comments
 (0)