Skip to content

Commit

Permalink
Added a windows detection
Browse files Browse the repository at this point in the history
  • Loading branch information
kitao committed Sep 26, 2022
1 parent d086eb9 commit 7d71c2f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion scripts/start_server
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,11 @@
ROOT_DIR=..
ORIGIN_DIR=.

if [ "$COMSPEC" = "" ]; then
PYTHON=python3
else # Windows
PYTHON=python
fi

cd `dirname $0`/$ROOT_DIR
python3 -m http.server --directory $ORIGIN_DIR 8000
$PYTHON -m http.server --directory $ORIGIN_DIR 8000

0 comments on commit 7d71c2f

Please sign in to comment.