Skip to content

Commit

Permalink
version should work even if installed from master.zip
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasLecocq committed Feb 7, 2024
1 parent 9c934ec commit 9900bcf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions msnoise/_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,8 @@ def get_git_version(abbrev=10, dirty=True, append_remote_tracking_branch=True):

if version is None:
try:
import pkg_resources
version = pkg_resources.get_distribution("msnoise").version
from importlib.metadata import version
version = version('msnoise')
except:
pass

Expand Down

0 comments on commit 9900bcf

Please sign in to comment.