mirror of
https://github.com/daylinmorgan/viv.git
synced 2024-11-09 19:13:14 -06:00
21 lines
503 B
Python
21 lines
503 B
Python
#!/usr/bin/env python3
|
|
"""
|
|
Embed the viv.py on the sys.path at runtime rather than using PYTHONPATH
|
|
"""
|
|
|
|
|
|
__import__("sys").path.append(
|
|
__import__("os").path.expanduser("~/.local/share/viv")
|
|
) # noqa # isort: off
|
|
__import__("viv").use("pyfiglet", "setuptools") # noqa # isort: off
|
|
# pyfiglet requires pkg_resources which is part of setuptools
|
|
|
|
import sys
|
|
|
|
from pyfiglet import Figlet
|
|
|
|
f = Figlet(font="slant")
|
|
print(f.renderText("Viv isn't venv!"))
|
|
|
|
print("Sys path:")
|
|
print("\n".join(sys.path))
|