mirror of
https://github.com/hwchase17/langchain.git
synced 2025-06-28 01:19:31 +00:00
BUG Fix app_name in cli app new (#13482)
This commit is contained in:
parent
9ff8f69e75
commit
75363f048f
@ -110,6 +110,10 @@ def new(
|
|||||||
readme_contents = readme.read_text()
|
readme_contents = readme.read_text()
|
||||||
readme.write_text(readme_contents.replace("__app_name__", app_name))
|
readme.write_text(readme_contents.replace("__app_name__", app_name))
|
||||||
|
|
||||||
|
pyproject = destination_dir / "pyproject.toml"
|
||||||
|
pyproject_contents = pyproject.read_text()
|
||||||
|
pyproject.write_text(pyproject_contents.replace("__app_name__", app_name))
|
||||||
|
|
||||||
# add packages if specified
|
# add packages if specified
|
||||||
if has_packages:
|
if has_packages:
|
||||||
add(package, project_dir=destination_dir, pip=pip_bool)
|
add(package, project_dir=destination_dir, pip=pip_bool)
|
||||||
|
Loading…
Reference in New Issue
Block a user