Skip to content

Commit b752cd0

Browse files
author
Dan
committed
Get version prior to importing classes
1 parent 1c760fa commit b752cd0

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

pssh/__init__.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@
2828
See :mod:`pssh.ParallelSSHClient` and :mod:`pssh.SSHClient` for class documentation.
2929
"""
3030

31+
from ._version import get_versions
32+
__version__ = get_versions()['version']
33+
del get_versions
3134
from .pssh_client import ParallelSSHClient
3235
from .ssh_client import SSHClient
3336
from .utils import enable_host_logger
@@ -37,7 +40,3 @@
3740

3841
host_logger = logging.getLogger('pssh.host_logger')
3942
logger = logging.getLogger('pssh')
40-
41-
from ._version import get_versions
42-
__version__ = get_versions()['version']
43-
del get_versions

0 commit comments

Comments
 (0)