From 6fb2048af0aced6d0b8c6a5e67553cafa7a9695e Mon Sep 17 00:00:00 2001 From: Deshraj Yadav Date: Fri, 19 Apr 2024 09:50:37 -0700 Subject: [PATCH] [Bug fix] Remove duplicate constants (#1342) --- embedchain/telemetry/posthog.py | 6 +----- pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/embedchain/telemetry/posthog.py b/embedchain/telemetry/posthog.py index b042431f..37c63ea6 100644 --- a/embedchain/telemetry/posthog.py +++ b/embedchain/telemetry/posthog.py @@ -2,15 +2,11 @@ import json import logging import os import uuid -from pathlib import Path from posthog import Posthog import embedchain - -HOME_DIR = str(Path.home()) -CONFIG_DIR = os.path.join(HOME_DIR, ".embedchain") -CONFIG_FILE = os.path.join(CONFIG_DIR, "config.json") +from embedchain.constants import CONFIG_DIR, CONFIG_FILE class AnonymousTelemetry: diff --git a/pyproject.toml b/pyproject.toml index bc8d4296..38fe0c06 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "embedchain" -version = "0.1.101" +version = "0.1.102" description = "Simplest open source retrieval (RAG) framework" authors = [ "Taranjeet Singh ",