Skip to content

Commit

Permalink
Expose ev3dev2.version.__version__ as ev3dev2.__version__ (#581)
Browse files Browse the repository at this point in the history
  • Loading branch information
WasabiFan authored and dwalton76 committed Dec 23, 2018
1 parent 055ba0d commit 89f36c5
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions ev3dev2/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,13 @@ def chain_exception(exception, cause):
else:
raise exception from cause

try:
# if we are in a released build, there will be an auto-generated "version"
# module
from .version import __version__
except ImportError:
__version__ = "<unknown>"

import os
import io
import fnmatch
Expand Down

0 comments on commit 89f36c5

Please sign in to comment.