From ad49a6e105e196f15416ce2a3d40c74f322ed418 Mon Sep 17 00:00:00 2001 From: Daylin Morgan Date: Mon, 31 Jul 2023 15:20:06 -0500 Subject: [PATCH] docs: make stopwatch use shebang instead --- examples/stopwatch.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) mode change 100644 => 100755 examples/stopwatch.py diff --git a/examples/stopwatch.py b/examples/stopwatch.py old mode 100644 new mode 100755 index 3fbcc61..4910de9 --- a/examples/stopwatch.py +++ b/examples/stopwatch.py @@ -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: 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