2022-12-19 23:22:23 -06:00
|
|
|
#!/usr/bin/env python3
|
|
|
|
"""
|
|
|
|
Embed the viv.py on the sys.path at runtime rather than using PYTHONPATH
|
|
|
|
"""
|
|
|
|
|
|
|
|
|
|
|
|
__import__("sys").path.append(
|
2023-05-30 13:02:15 -05:00
|
|
|
__import__("os").path.expanduser("~/.local/share/viv")
|
2022-12-19 23:22:23 -06:00
|
|
|
) # noqa # isort: off
|
2023-06-05 14:42:51 -05:00
|
|
|
__import__("viv").use("pyfiglet", "setuptools") # noqa # isort: off
|
|
|
|
# pyfiglet requires pkg_resources which is part of setuptools
|
2022-12-19 23:22:23 -06:00
|
|
|
|
|
|
|
import sys
|
|
|
|
|
|
|
|
from pyfiglet import Figlet
|
|
|
|
|
|
|
|
f = Figlet(font="slant")
|
|
|
|
print(f.renderText("Viv isn't venv!"))
|
|
|
|
|
|
|
|
print("Sys path:")
|
2022-12-20 14:15:17 -06:00
|
|
|
print("\n".join(sorted(set(sys.path))))
|