Browse Source

Remove comments and make executable

DricomDragon 5 năm trước cách đây
mục cha
commit
220d6c0bef
2 tập tin đã thay đổi với 9 bổ sung9 xóa
  1. 9 9
      steps/01-blink-led/1-build.py
  2. 0 0
      steps/01-blink-led/2-flash-via-usb.py

+ 9 - 9
steps/01-blink-led/1-build.py

@@ -1,30 +1,30 @@
 #! /usr/bin/env python
 # -*- coding: UTF-8 -*-
 
-#----------------------------------------------------------------------------------------------------------------------*
-
 import sys, os, json
 
-#----------------------------------------------------------------------------------------------------------------------*
-
-#----------------------------------------------------------------- Get script absolute path
+# Get script absolute path
 scriptDir = os.path.dirname (os.path.abspath (sys.argv [0]))
 os.chdir (scriptDir)
-#----------------------------------------------------------------- Get max parallel jobs as first argument
+
+# Get max parallel jobs as first argument
 goal = "all"
 if len (sys.argv) > 1 :
   goal = sys.argv [1]
-#----------------------------------------------------------------- Get max parallel jobs as first argument
+
+# Get max parallel jobs as first argument
 maxParallelJobs = 0 # 0 means use host processor count
 if len (sys.argv) > 2 :
   maxParallelJobs = int (sys.argv [2])
-#----------------------------------------------------------------- Build
+
+# Build
 jsonFilePath = os.path.abspath (scriptDir + "/makefile.json")
 f = open (jsonFilePath, "r")
 dictionary = json.loads (f.read ())
 f.close ()
 sys.path.append (scriptDir + "/../../dev-files")
+
 import code_builder
 code_builder.buildCode (goal, scriptDir, maxParallelJobs, maxParallelJobs == 1)
 
-#----------------------------------------------------------------------------------------------------------------------*
+

+ 0 - 0
steps/01-blink-led/2-flash-via-usb.py