Skip to content

Commit

Permalink
Fixing pkg_resources not present (#222)
Browse files Browse the repository at this point in the history
  • Loading branch information
chayim authored Feb 29, 2024
1 parent e144fb8 commit fb892b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions RLTest/_version.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@

# This attribute is the only one place that the version number is written down,
# so there is only one place to change it when the version number changes.
import pkg_resources
try:
import pkg_resources
__version__ = pkg_resources.get_distribution('RLTest').version
except (pkg_resources.DistributionNotFound, AttributeError):
except (pkg_resources.DistributionNotFound, AttributeError, ImportError):
__version__ = "99.99.99" # like redis modules

0 comments on commit fb892b3

Please sign in to comment.