Make __version__ available in the whole module
This shortens the include from "from .__version__ import __version__" to "from . import __version__" within the module. Signed-off-by: Claudius Heine <ch@denx.de>
This commit is contained in:
parent
c9d961f3ee
commit
4df59537ba
@ -22,3 +22,4 @@
|
||||
|
||||
__license__ = 'MIT'
|
||||
__copyright__ = 'Copyright (c) Siemens AG, 2017'
|
||||
from .__version__ import __version__
|
||||
|
@ -37,7 +37,7 @@ except ImportError:
|
||||
|
||||
from .build import Build
|
||||
from .shell import Shell
|
||||
from .__version__ import __version__
|
||||
from . import __version__
|
||||
|
||||
__license__ = 'MIT'
|
||||
__copyright__ = 'Copyright (c) Siemens AG, 2017'
|
||||
|
Loading…
Reference in New Issue
Block a user