From 9f97ecba25d7764b8680ef639dc431158f2f296d Mon Sep 17 00:00:00 2001 From: Gabriel Luiz Freitas Almeida Date: Tue, 1 Aug 2023 18:12:02 -0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix(=5F=5Fmain=5F=5F.py):=20fix?= =?UTF-8?q?=20default=20value=20of=20components=5Fpath=20option=20to=20poi?= =?UTF-8?q?nt=20to=20the=20correct=20directory=20=E2=9C=A8=20feat(=5F=5Fma?= =?UTF-8?q?in=5F=5F.py):=20add=20support=20for=20LANGFLOW=5FCOMPONENTS=5FP?= =?UTF-8?q?ATH=20environment=20variable=20to=20specify=20the=20directory?= =?UTF-8?q?=20containing=20custom=20components?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/backend/langflow/__main__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/langflow/__main__.py b/src/backend/langflow/__main__.py index b20a2a902..58789908a 100644 --- a/src/backend/langflow/__main__.py +++ b/src/backend/langflow/__main__.py @@ -127,7 +127,7 @@ def serve( timeout: int = typer.Option(300, help="Worker timeout in seconds."), port: int = typer.Option(7860, help="Port to listen on.", envvar="LANGFLOW_PORT"), components_path: Optional[Path] = typer.Option( - Path(__file__).parent, + Path(__file__).parent / "components", help="Path to the directory containing custom components.", envvar="LANGFLOW_COMPONENTS_PATH", ),