From f1a310aee3728b34ac4aa183120c7f1130f8d13b Mon Sep 17 00:00:00 2001 From: Daylin Morgan Date: Fri, 26 May 2023 15:06:12 -0500 Subject: [PATCH] develop more --- src/viv/viv.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/viv/viv.py b/src/viv/viv.py index 6e88689..5e3a8b4 100755 --- a/src/viv/viv.py +++ b/src/viv/viv.py @@ -51,7 +51,7 @@ from typing import ( Generator, ) -__version__ = "22.12a3-53-g6d98e2a-dev" +__version__ = "22.12a3-54-g79d7978-dev" @dataclass @@ -859,9 +859,11 @@ class Viv: self.local_source = self.running_source else: try: - self.local_source = __import__("viv").__file__ + _local_viv = __import__("viv") + self.local_source = _local_viv.__file__ + self.local_version = _local_viv.__version__ except ImportError: - self.local_source = "Not Found" + self.local_source = self.local_version = "Not Found" self.git = self.local_source != "Not Found" and str(self.local_source).endswith( "src/viv/__init__.py" @@ -1008,7 +1010,7 @@ class Viv: q = ( "Update source at: " + a.style(self.running_source, "bold") - + f" \n from version {__version__} to {next_version}?" + + f" \n from version {self.local_version} to {next_version}?" ) if confirm(q):