From ba9f186fc53be52c0897cc5c9e399e44001f41dc Mon Sep 17 00:00:00 2001 From: Deshraj Yadav Date: Thu, 18 Apr 2024 11:20:01 -0700 Subject: [PATCH] [Improvement] Make embedchain home dir configurable (#1341) --- embedchain/constants.py | 2 +- pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/embedchain/constants.py b/embedchain/constants.py index 758c752621..d3d7b28b33 100644 --- a/embedchain/constants.py +++ b/embedchain/constants.py @@ -2,7 +2,7 @@ from pathlib import Path ABS_PATH = os.getcwd() -HOME_DIR = str(Path.home()) +HOME_DIR = os.environ.get("EMBEDCHAIN_CONFIG_DIR", str(Path.home())) CONFIG_DIR = os.path.join(HOME_DIR, ".embedchain") CONFIG_FILE = os.path.join(CONFIG_DIR, "config.json") SQLITE_PATH = os.path.join(CONFIG_DIR, "embedchain.db") diff --git a/pyproject.toml b/pyproject.toml index 15a102fac3..bc8d429663 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "embedchain" -version = "0.1.100" +version = "0.1.101" description = "Simplest open source retrieval (RAG) framework" authors = [ "Taranjeet Singh ",