From 83b323f13a917c558157bce58849af0d605c9e9a Mon Sep 17 00:00:00 2001 From: Vladimir Mandic Date: Sat, 12 Jul 2025 17:40:34 -0400 Subject: [PATCH] fix VersionManager not using CRAWL4_AI_BASE_DIRECTORY --- crawl4ai/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crawl4ai/utils.py b/crawl4ai/utils.py index 8735dee0..4f9c9a2b 100644 --- a/crawl4ai/utils.py +++ b/crawl4ai/utils.py @@ -226,7 +226,7 @@ def merge_chunks( class VersionManager: def __init__(self): - self.home_dir = Path.home() / ".crawl4ai" + self.home_dir = Path(os.getenv("CRAWL4_AI_BASE_DIRECTORY", Path.home())) self.version_file = self.home_dir / "version.txt" def get_installed_version(self):