fix some stuff (#12292)

Co-authored-by: Erick Friis <erick@langchain.dev>
This commit is contained in:
Harrison Chase
2023-10-26 13:30:36 -07:00
committed by GitHub
parent 6ce276e099
commit 9ce38726a2
21 changed files with 17 additions and 3033 deletions

View File

@@ -30,7 +30,7 @@ def new(
destination_dir = Path.cwd() / name if name != "." else Path.cwd()
# copy over template from ../package_template
project_template_dir = Path(__file__).parent.parent.parent / "package_template"
project_template_dir = Path(__file__).parents[1] / "package_template"
shutil.copytree(project_template_dir, destination_dir, dirs_exist_ok=name == ".")
package_name_split = computed_name.split("/")

View File

@@ -42,7 +42,7 @@ def new(
Create a new LangServe application.
"""
# copy over template from ../project_template
project_template_dir = Path(__file__).parent.parent.parent / "project_template"
project_template_dir = Path(__file__).parents[1] / "project_template"
destination_dir = Path.cwd() / name if name != "." else Path.cwd()
shutil.copytree(project_template_dir, destination_dir, dirs_exist_ok=name == ".")