This commit is contained in:
Daylin Morgan 2023-05-26 18:00:49 -05:00
parent c5043ff3c3
commit 70033732ff
Signed by: daylin
GPG key ID: C1E52E7DD81DF79F

View file

@ -6,8 +6,6 @@
__import__("viv").use("requests", "bs4")
"""
from __future__ import annotations
import hashlib
import itertools
import json
@ -51,7 +49,7 @@ from typing import (
Generator,
)
__version__ = "22.12a3-57-g8277a54-dev"
__version__ = "22.12a3-58-gc5043ff-dev"
@dataclass
@ -878,7 +876,8 @@ class Viv:
"viv" if self.local else "python3 <(curl -fsSL gh.dayl.in/viv/viv.py)"
)
def _get_sources(self):
def _get_sources(self) -> None:
self.local_source: Path | str
self.running_source = Path(__file__).resolve()
self.local = not str(self.running_source).startswith("/proc/")
if self.local:
@ -887,7 +886,9 @@ class Viv:
else:
try:
_local_viv = __import__("viv")
self.local_source = _local_viv.__file__
self.local_source = (
_local_viv.__file__ if _local_viv.__file__ else "Not Found"
)
self.local_version = _local_viv.__version__
except ImportError:
self.local_source = self.local_version = "Not Found"