Skip to content

Commit

Permalink
Merge pull request #21 from chappers/patch-1
Browse files Browse the repository at this point in the history
Added Python 3 Support
  • Loading branch information
benrady authored Jan 1, 2017
2 parents f6a0035 + e8afb4d commit dbeb49a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion sspa
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,12 @@ function check_node_deps() {

function dev_server() {
cd public
exec python -m SimpleHTTPServer 9292
ret=`python -c 'import sys; print("%i" % (sys.hexversion<0x03000000))'`
if [ $ret -eq 0 ]; then
exec python -m http.server 9292
else
exec python -m SimpleHTTPServer 9292
fi
}

function livereload_server() {
Expand Down

0 comments on commit dbeb49a

Please sign in to comment.