mirror of
https://github.com/elephantrobotics/mycobot_ros.git
synced 2026-07-05 19:47:04 +00:00
optimize
This commit is contained in:
parent
3ab3a2bee3
commit
d36a23ab9a
3 changed files with 7 additions and 1 deletions
|
|
@ -56,6 +56,8 @@ def cut_photo():
|
|||
path = path1
|
||||
elif os.path.exists(path2):
|
||||
path = path2
|
||||
else:
|
||||
print("invalid path!")
|
||||
|
||||
path_red = path+'/res/red'
|
||||
for i, j, k in os.walk(path_red):
|
||||
|
|
|
|||
|
|
@ -56,7 +56,9 @@ def cut_photo():
|
|||
path = path1
|
||||
elif os.path.exists(path2):
|
||||
path = path2
|
||||
|
||||
else:
|
||||
print("invalid path!")
|
||||
|
||||
path_red = path + '/res/red'
|
||||
for i, j, k in os.walk(path_red):
|
||||
file_len_red = len(k)
|
||||
|
|
|
|||
|
|
@ -56,6 +56,8 @@ def cut_photo():
|
|||
path = path1
|
||||
elif os.path.exists(path2):
|
||||
path = path2
|
||||
else:
|
||||
print("invalid path!")
|
||||
|
||||
path_red = path + '/res/red'
|
||||
for i, j, k in os.walk(path_red):
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue