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: