mirror of
https://github.com/daylinmorgan/viv.git
synced 2024-09-20 03:57:18 -05:00
update
This commit is contained in:
parent
c5043ff3c3
commit
70033732ff
1 changed files with 6 additions and 5 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue