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'
|
__license__ = 'MIT'
|
||||||
__copyright__ = 'Copyright (c) Siemens AG, 2017'
|
__copyright__ = 'Copyright (c) Siemens AG, 2017'
|
||||||
|
from .__version__ import __version__
|
||||||
|
@ -37,7 +37,7 @@ except ImportError:
|
|||||||
|
|
||||||
from .build import Build
|
from .build import Build
|
||||||
from .shell import Shell
|
from .shell import Shell
|
||||||
from .__version__ import __version__
|
from . import __version__
|
||||||
|
|
||||||
__license__ = 'MIT'
|
__license__ = 'MIT'
|
||||||
__copyright__ = 'Copyright (c) Siemens AG, 2017'
|
__copyright__ = 'Copyright (c) Siemens AG, 2017'
|
||||||
|
2
setup.py
2
setup.py
@ -23,7 +23,7 @@
|
|||||||
from setuptools import setup, find_packages
|
from setuptools import setup, find_packages
|
||||||
from os import path
|
from os import path
|
||||||
|
|
||||||
from kas.__version__ import __version__
|
from kas import __version__
|
||||||
|
|
||||||
__license__ = 'MIT'
|
__license__ = 'MIT'
|
||||||
__copyright__ = 'Copyright (c) Siemens AG, 2017'
|
__copyright__ = 'Copyright (c) Siemens AG, 2017'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user