Skip to content

Commit

Permalink
Protect imports in __init__.py (#47)
Browse files Browse the repository at this point in the history
This commit protects the imports in __init__.py to allow
sourcing the version and title from it.
  • Loading branch information
PFigs authored and Pedro Silva committed Jul 8, 2019
1 parent 1c23ac1 commit 3c7bad4
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions python_transport/wirepas_gateway/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,20 @@
Wirepas Oy licensed under Apache License, Version 2.0
See file LICENSE for full license details.
"""
try:
from . import dbus
except ImportError:
pass

from . import dbus
from . import protocol
from . import utils
try:
from . import protocol
except ImportError:
pass

try:
from . import utils
except ImportError:
pass

__title__ = "wirepas_messaging"
__version__ = "1.2.0rc1"

0 comments on commit 3c7bad4

Please sign in to comment.