mirror of
https://github.com/daylinmorgan/viv.git
synced 2024-11-13 20:47:53 -06:00
fix: don't source empty share directory
This commit is contained in:
parent
39786aae21
commit
095e1017b2
1 changed files with 6 additions and 5 deletions
|
@ -50,7 +50,7 @@ from typing import (
|
||||||
from urllib.error import HTTPError
|
from urllib.error import HTTPError
|
||||||
from urllib.request import urlopen
|
from urllib.request import urlopen
|
||||||
|
|
||||||
__version__ = "23.5a5-27-ge697488-dev"
|
__version__ = "23.5a5-28-g39786aa-dev"
|
||||||
|
|
||||||
|
|
||||||
class Spinner:
|
class Spinner:
|
||||||
|
@ -973,10 +973,11 @@ class Viv:
|
||||||
else:
|
else:
|
||||||
try:
|
try:
|
||||||
_local_viv = __import__("viv")
|
_local_viv = __import__("viv")
|
||||||
self.local_source = (
|
if _local_viv.__file__:
|
||||||
Path(_local_viv.__file__) if _local_viv.__file__ else None
|
self.local_source = Path(_local_viv.__file__)
|
||||||
)
|
self.local_version = _local_viv.__version__
|
||||||
self.local_version = _local_viv.__version__
|
else:
|
||||||
|
self.local_version = "Not Found"
|
||||||
except ImportError:
|
except ImportError:
|
||||||
self.local_version = "Not Found"
|
self.local_version = "Not Found"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue