Browse Source

更新 'backup/preset/app/checkout.py'

junhuanchen 1 year ago
parent
commit
32a227f72c
1 changed files with 7 additions and 3 deletions
  1. 7 3
      backup/preset/app/checkout.py

+ 7 - 3
backup/preset/app/checkout.py

@@ -1,3 +1,5 @@
+localrep = "/home"
+
 from maix import camera, display, image
 
 image.load_freetype("/root/preset/fonts/simhei.ttf")
@@ -5,10 +7,12 @@ hello_img = image.new(size=(320, 240), color=(0, 0, 0), mode="RGB")
 hello_img.draw_string(10, 115, 'Checkout', scale=1.0, color=(255, 255, 255), thickness=1)
 display.show(hello_img)
 
-import git, os
-from io import RawIOBase
+import os, git
 
-localrep = "/home"
+if os.path.exists(localrep + "/cclb_launch"):
+    os.remove(localrep + "/cclb_launch")
+
+from io import RawIOBase
 
 
 class NewStream(RawIOBase):