Skip to content

Commit

Permalink
fix(cli): report version using importlib rather than pkg_resources.
Browse files Browse the repository at this point in the history
  • Loading branch information
qkaiser committed Oct 13, 2023
1 parent b38f3b9 commit 43dc0c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions unblob/cli.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#!/usr/bin/env python3
import atexit
import sys
from importlib.metadata import version
from pathlib import Path
from typing import Dict, Iterable, List, Optional, Tuple

import click
import pkg_resources
from rich.console import Console
from rich.panel import Panel
from rich.table import Table
Expand Down Expand Up @@ -36,7 +36,7 @@ def restore_cursor():


def get_version():
return pkg_resources.get_distribution("unblob").version
return version("unblob")


def show_version(
Expand Down

0 comments on commit 43dc0c7

Please sign in to comment.