From e60710231eec52ad3c53a1ddae552c01cdfe1770 Mon Sep 17 00:00:00 2001 From: Nekomantikku <154403265+Nekomantikku@users.noreply.github.com> Date: Tue, 17 Jun 2025 18:24:08 +0200 Subject: [PATCH] Add files via upload --- run_python_server.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 run_python_server.sh diff --git a/run_python_server.sh b/run_python_server.sh new file mode 100644 index 00000000..2abefe7d --- /dev/null +++ b/run_python_server.sh @@ -0,0 +1,15 @@ +#!/usr/bin/env sh +if command -v python3 >/dev/null 2>&1; then + PYTHON=python3 +elif command -v python >/dev/null 2>&1; then + PYTHON=python +else + echo "Neither 'python' nor 'python3' was found. Please install Python 3 package." >&2 + exit 1 +fi + +firefox http://localhost:8000 + +$PYTHON -m http.server 8000 + +