Skip to content

Commit

Permalink
Replace another pkg_resources occurrence
Browse files Browse the repository at this point in the history
  • Loading branch information
pylipp committed Jun 3, 2024
1 parent ab92e35 commit 85ef1a1
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions financeager/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
import sys
import time
from datetime import datetime
from importlib.metadata import entry_points

import argcomplete
import pkg_resources
from dateutil import parser as du_parser
from rich.console import Console

Expand Down Expand Up @@ -50,9 +50,7 @@ def main():
# Adding the FileHandler here avoids cluttering the log during tests
setup_log_file_handler()

plugins = [
ep.load()() for ep in pkg_resources.iter_entry_points("financeager.services")
]
plugins = [ep.load()() for ep in entry_points(group="financeager.services")]

args = _parse_command(plugins=plugins)
try:
Expand Down

0 comments on commit 85ef1a1

Please sign in to comment.