netron 438 B

12345678910
  1. #!/bin/bash
  2. # Build and start Netron as a Python web server from local directory
  3. source=$(dirname ${0})
  4. pushd ${source} > /dev/null
  5. [ -d node_modules ] || npm install
  6. rm -rf ./build/python
  7. python ./setup.py --quiet build
  8. popd > /dev/null
  9. PYTHON_VERSION=$(python -c "import sys; print('.'.join(str(x) for x in sys.version_info[:2]))")
  10. PYTHONPATH=${source}/build/python/lib python ${source}/build/python/scripts-${PYTHON_VERSION}/netron $@