2-flash-via-usb.py 667 B

123456789101112131415161718
  1. #! /usr/bin/env python
  2. # -*- coding: UTF-8 -*-
  3. #----------------------------------------------------------------------------------------------------------------------*
  4. import sys, os, subprocess
  5. #----------------------------------------------------------------------------------------------------------------------*
  6. #--- Get script absolute path
  7. scriptDir = os.path.dirname (os.path.abspath (sys.argv [0]))
  8. os.chdir (scriptDir)
  9. #---
  10. returncode = subprocess.call (["python", "1-build.py", "run"])
  11. if returncode != 0 :
  12. sys.exit (returncode)
  13. #----------------------------------------------------------------------------------------------------------------------*