Skip to content

Commit

Permalink
add import pkg_resources
Browse files Browse the repository at this point in the history
  • Loading branch information
Findus23 committed Feb 22, 2021
1 parent 3ee6998 commit dfd99ed
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions reboundx/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
__githash__ = c_char_p.in_dll(clibreboundx, "rebx_githash_str").value.decode('ascii')

try:
import pkg_resources
moduleversion = pkg_resources.require("reboundx")[0].version
libreboundxversion = __version__
if moduleversion != libreboundxversion:
Expand Down

0 comments on commit dfd99ed

Please sign in to comment.