Skip to content

Commit

Permalink
import version
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanljones committed Nov 3, 2022
1 parent 55e086a commit 220db53
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions mplstyles/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@
import os
import matplotlib.pyplot as plt

try:
from ._version import __version__
except ImportError:
__version__ = "0.0.0"


def use_mplstyle(name: str) -> None:
name = os.path.splitext(name)[0] + ".mplstyle" # ensure the name ends with ext
Expand Down

0 comments on commit 220db53

Please sign in to comment.