提交 ac49eefb 编写于 作者: R Ricardo Cabello

Merge pull request #3043 from troffmo5/python3server

utils/python_server.sh uses the right module for each python version
#!/bin/sh
cd `dirname $0`/../../
python -m SimpleHTTPServer
\ No newline at end of file
ret=`python -c 'import sys; print("%i" % (sys.version_info[0]))'`
if [ $ret -eq 2 ]; then
# Python 2
python -m SimpleHTTPServer
else
# Python 3
python -m http.server
fi
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册