mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-12 00:11:17 +00:00
fix some stuff (#12292)
Co-authored-by: Erick Friis <erick@langchain.dev>
This commit is contained in:
@@ -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("/")
|
||||
|
@@ -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 == ".")
|
||||
|
||||
|
Reference in New Issue
Block a user