File tree Expand file tree Collapse file tree 3 files changed +17
-5
lines changed
agentic_connector_builder_webapp Expand file tree Collapse file tree 3 files changed +17
-5
lines changed Original file line number Diff line number Diff line change @@ -13,11 +13,14 @@ def main() -> None:
1313 It locates the app directory (containing rxconfig.py) and runs reflex from there.
1414 """
1515 package_dir = Path (__file__ ).parent
16+ cwd = Path .cwd ()
1617
17- if (package_dir / "rxconfig.py" ).exists ():
18- app_dir = package_dir
18+ if (cwd / "rxconfig.py" ).exists ():
19+ app_dir = cwd
1920 elif (package_dir .parent / "rxconfig.py" ).exists ():
2021 app_dir = package_dir .parent
22+ elif (package_dir / "rxconfig.py" ).exists ():
23+ app_dir = package_dir
2124 else :
2225 print (
2326 "Error: Could not find rxconfig.py. "
@@ -26,6 +29,9 @@ def main() -> None:
2629 )
2730 sys .exit (1 )
2831
32+ rxconfig_path = app_dir / "rxconfig.py"
33+ print (f"Using rxconfig.py from: { rxconfig_path } " , file = sys .stderr )
34+
2935 cmd = ["reflex" , "run" ]
3036
3137 try :
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ dependencies = [
1111 " pydantic-ai-slim[duckduckgo]" ,
1212 " python-dotenv>=1.2.1" ,
1313 " dill>=0.4.0" ,
14+ " ddgs>=9.7.1,<10.0" ,
1415]
1516
1617[project .optional-dependencies ]
@@ -29,6 +30,9 @@ build-backend = "hatchling.build"
2930[tool .hatch .build .targets .wheel ]
3031packages = [" agentic_connector_builder_webapp" ]
3132
33+ [tool .hatch .build .targets .wheel .force-include ]
34+ "rxconfig.py" = " rxconfig.py"
35+
3236[dependency-groups ]
3337dev = [
3438 " playwright>=1.54.0" ,
You can’t perform that action at this time.
0 commit comments