docs: make stopwatch use shebang instead

This commit is contained in:
Daylin Morgan 2023-07-31 15:20:06 -05:00
parent d90db35a84
commit ad49a6e105
Signed by: daylin
GPG key ID: C1E52E7DD81DF79F

6
examples/stopwatch.py Normal file → Executable file
View file

@ -1,9 +1,11 @@
#!/usr/bin/env python3 #!/usr/bin/env -S viv run textual -k -s
"""A tui stopwatch built w/textual adapted from their tutorial: """A tui stopwatch built w/textual adapted from their tutorial:
https://github.com/Textualize/textual/tree/main/docs/examples/tutorial https://github.com/Textualize/textual/tree/main/docs/examples/tutorial
""" """
__import__("viv").use("textual") # use shebang instead
# __import__("viv").use("textual")
from time import monotonic from time import monotonic