Skip to content

Commit

Permalink
Merge branch 'langchain-template'
Browse files Browse the repository at this point in the history
  • Loading branch information
LeooR22 committed Aug 25, 2023
2 parents e1f3cce + 69fd3cc commit 819129a
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions create_fastapi_project/templates/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,14 @@ def install_template(root: str, template: ITemplate, app_name: str):
)


# Add pyproject.toml file and installl packages
app_folder: str = "app"
poetry_path = ""
if template == ITemplate.full or template == ITemplate.langchain_basic:
# TODO: CHECK PATHS IN MACOS AND WINDOWS | (os.path.join)
app_folder = "backend\\app"
poetry_path = os.path.join(root, "backend", "app")

else:
poetry_path = os.path.join(root, "app")

poetry_path = os.path.join(root, app_folder)
has_pyproject = add_configuration_to_pyproject(poetry_path)

if has_pyproject:
Expand Down

0 comments on commit 819129a

Please sign in to comment.