From f510f42b964f51d79709d7edc36898ff495116f4 Mon Sep 17 00:00:00 2001 From: Maxime Beauchemin Date: Thu, 12 Dec 2024 09:20:52 -0800 Subject: [PATCH] fix: pkg_resources is getting deprecated (#31411) --- superset/config.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/superset/config.py b/superset/config.py index 8a490a982d46d..9246e0f030076 100644 --- a/superset/config.py +++ b/superset/config.py @@ -39,7 +39,6 @@ from typing import Any, Callable, Iterator, Literal, TYPE_CHECKING, TypedDict import click -import pkg_resources from celery.schedules import crontab from flask import Blueprint from flask_appbuilder.security.manager import AUTH_DB @@ -86,7 +85,7 @@ SUPERSET_LOG_VIEW = True -BASE_DIR = pkg_resources.resource_filename("superset", "") +BASE_DIR = str(files("superset")) if "SUPERSET_HOME" in os.environ: DATA_DIR = os.environ["SUPERSET_HOME"] else: