Skip to content

Commit 819129a

Browse files
committed
Merge branch 'langchain-template'
2 parents e1f3cce + 69fd3cc commit 819129a

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

create_fastapi_project/templates/__init__.py

+5-4
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,14 @@ def install_template(root: str, template: ITemplate, app_name: str):
3333
)
3434

3535

36-
# Add pyproject.toml file and installl packages
37-
app_folder: str = "app"
36+
poetry_path = ""
3837
if template == ITemplate.full or template == ITemplate.langchain_basic:
3938
# TODO: CHECK PATHS IN MACOS AND WINDOWS | (os.path.join)
40-
app_folder = "backend\\app"
39+
poetry_path = os.path.join(root, "backend", "app")
40+
41+
else:
42+
poetry_path = os.path.join(root, "app")
4143

42-
poetry_path = os.path.join(root, app_folder)
4344
has_pyproject = add_configuration_to_pyproject(poetry_path)
4445

4546
if has_pyproject:

0 commit comments

Comments
 (0)