瀏覽代碼

change pull.py_en

liushuai 3 月之前
父節點
當前提交
1d401c9c6b
共有 1 個文件被更改,包括 8 次插入8 次删除
  1. 8 8
      preset/app/pull.py

+ 8 - 8
preset/app/pull.py

@@ -1,5 +1,5 @@
 localrep = "/home/backup"
-otaPath = "/root/preset/app/ota.py"
+otaPath = 'ota.py'
 
 from maix import camera, display, image  # 引入python模块包
 
@@ -32,13 +32,13 @@ git.rw()
 steam = NewStream()
 git.pull(localrep, steam)
 
-hello_img = image.new(size=(320, 240), color=(0, 0, 0), mode="RGB")
-commit, Author, Date, message = git.__log__(localrep)
-hello_img.draw_string(10, 50, commit, scale=1.0, color=(255, 255, 255), thickness=1)
-hello_img.draw_string(10, 100, Author, scale=1.0, color=(255, 255, 255), thickness=1)
-hello_img.draw_string(10, 150, Date, scale=1.0, color=(255, 255, 255), thickness=1)
-hello_img.draw_string(10, 200, message, scale=1.0, color=(255, 255, 255), thickness=1)
-display.show(hello_img)
+# hello_img = image.new(size=(320, 240), color=(0, 0, 0), mode="RGB")
+# commit, Author, Date, message = git.__log__(localrep)
+# hello_img.draw_string(10, 50, commit, scale=1.0, color=(255, 255, 255), thickness=1)
+# hello_img.draw_string(10, 100, Author, scale=1.0, color=(255, 255, 255), thickness=1)
+# hello_img.draw_string(10, 150, Date, scale=1.0, color=(255, 255, 255), thickness=1)
+# hello_img.draw_string(10, 200, message, scale=1.0, color=(255, 255, 255), thickness=1)
+# display.show(hello_img)
 
 with open(otaPath) as f:
     code = f.read()