We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b6b8116 commit a93cf42Copy full SHA for a93cf42
1 file changed
cmd2_myplugin/__init__.py
@@ -5,4 +5,11 @@
5
An overview of what myplugin does.
6
"""
7
8
+from pkg_resources import get_distribution, DistributionNotFound
9
+
10
from .myplugin import empty_decorator, MyPlugin
11
12
+try:
13
+ __version__ = get_distribution(__name__).version
14
+except DistributionNotFound:
15
+ __version__ = 'unknown'
0 commit comments