mirror of
https://github.com/daylinmorgan/viv.git
synced 2024-12-22 10:40:44 -06:00
20 lines
437 B
Python
20 lines
437 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("~/.viv/src")
|
|
) # noqa # isort: off
|
|
__import__("viv").activate("pyfiglet") # noqa # isort: off
|
|
|
|
import sys
|
|
|
|
from pyfiglet import Figlet
|
|
|
|
f = Figlet(font="slant")
|
|
print(f.renderText("Viv isn't venv!"))
|
|
|
|
print("Sys path:")
|
|
print("\n".join(sorted(set(sys.path))))
|