mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-02 07:18:25 +01:00
dvc: fix dynamic version check
This commit is contained in:
+5
-2
@@ -56,8 +56,11 @@ if os.path.exists(os.path.join(HOMEPATH, 'setup.py')):
|
||||
else: # pragma: no cover
|
||||
# dvc was installed with pip or something. Hopefully we have our
|
||||
# auto-generated version.py to help us provide a true version
|
||||
from dvc.version import version
|
||||
__version__ = version
|
||||
try:
|
||||
from dvc.version import version
|
||||
__version__ = version
|
||||
except Exception:
|
||||
pass
|
||||
|
||||
VERSION = __version__
|
||||
|
||||
|
||||
Reference in New Issue
Block a user