Skip to content

Commit

Permalink
feat: enable Solverz version peek
Browse files Browse the repository at this point in the history
  • Loading branch information
rzyu45 committed Jun 3, 2024
1 parent f77864e commit cbaf581
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Solverz/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,11 @@
from Solverz.utilities.profile import count_time
from Solverz.variable.ssymbol import Var, AliasVar
from Solverz.model.basic import Model

from importlib.metadata import version, PackageNotFoundError

try:
__version__ = version("Solverz")
except PackageNotFoundError:
# package is not installed
pass

0 comments on commit cbaf581

Please sign in to comment.