mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-18 10:01:23 +01:00
Add files via upload
This commit is contained in:
parent
d9391d6d97
commit
e60710231e
1 changed files with 15 additions and 0 deletions
15
run_python_server.sh
Normal file
15
run_python_server.sh
Normal file
|
|
@ -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
|
||||||
|
|
||||||
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue