We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 146bd67 commit 14d841cCopy full SHA for 14d841c
1 file changed
reflex/utils/exec.py
@@ -238,6 +238,10 @@ def get_app_file() -> Path:
238
Raises:
239
ImportError: If the app module is not found.
240
"""
241
+ current_working_dir = str(Path.cwd())
242
+ if current_working_dir not in sys.path:
243
+ # Add the current working directory to sys.path
244
+ sys.path.insert(0, current_working_dir)
245
module_spec = importlib.util.find_spec(get_app_module())
246
if module_spec is None:
247
raise ImportError(
0 commit comments