@@ -38,9 +38,12 @@ def iter_path(src_p, dst_p):
3838
3939 if os .path .isdir (src_file ):
4040 iter_path (src_file , dst_file )
41+ print ('rmdir' , src_file )
4142 os .rmdir (src_file )
4243 else :
44+ print (src_file , '--->' , dst_file )
4345 shutil .copyfile (src_file , dst_file )
46+ print ('remove' , src_file )
4447 os .remove (src_file )
4548
4649 iter_path (src_path , dst_path )
@@ -64,11 +67,16 @@ def iter_files(s_path, d_path, o_path):
6467
6568 if os .path .isdir (src_file ):
6669 if not os .path .exists (org_file ):
70+ print ('makedirs' , org_file )
6771 os .makedirs (org_file )
6872
6973 iter_files (src_file , dst_file , org_file )
7074 else :
71- shutil .copyfile (dst_file , org_file )
75+ if os .path .exists (dst_file ):
76+ print (dst_file , '--->' , org_file )
77+ shutil .copyfile (dst_file , org_file )
78+
79+ print (src_file , '--->' , dst_file )
7280 shutil .copyfile (src_file , dst_file )
7381
7482 iter_files (src_path , dst_path , org_path )
@@ -97,10 +105,12 @@ def read_file(port, file):
97105 org_path = os .path .join (org_path , * save_path )
98106
99107 if not os .path .exists (org_path ):
108+ print ('makedirs' , org_path )
100109 os .makedirs (org_path )
101110
102111 org_file = os .path .join (org_path , filename )
103112 if not os .path .exists (org_file ):
113+ print (file , '--->' , org_file )
104114 shutil .copyfile (file , org_file )
105115
106116 with open (file , 'rb' ) as f :
@@ -332,7 +342,7 @@ def get_lvgl():
332342def get_micropython ():
333343
334344 cmd_ = [
335- 'git submodule updatem --init --depth=1 -- lib/micropython' ,
345+ 'git submodule update --init --depth=1 -- lib/micropython' ,
336346 ]
337347 print ()
338348 print ('collecting MicroPython 1.23.0' )
0 commit comments