Skip to content

Commit 2e2f217

Browse files
committed
added path to macos and windows
1 parent 060913f commit 2e2f217

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)