FTXUI/examples/run_webassembly.sh

7 lines
127 B
Bash
Raw Normal View History

2021-03-22 07:26:52 +08:00
#! /bin/bash
python3 -m http.server 8888 &
P1=$!
trap 'kill 0' SIGINT; P1
python3 -m webbrowser http://localhost:8888
wait $P1