Skip to content

Commit

Permalink
fix: pkg_resources is getting deprecated (apache#31411)
Browse files Browse the repository at this point in the history
  • Loading branch information
mistercrunch authored Dec 12, 2024
1 parent 43314dc commit f510f42
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions superset/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit f510f42

Please sign in to comment.