Fix bug
This commit is contained in:
parent
6be539f738
commit
796f1da1e4
@ -6,7 +6,7 @@ import sys
|
|||||||
|
|
||||||
medir = os.path.dirname(__file__)
|
medir = os.path.dirname(__file__)
|
||||||
|
|
||||||
if len(sys.argv) > 2:
|
if len(sys.argv) > 1:
|
||||||
example_data_path = sys.argv[1]
|
example_data_path = sys.argv[1]
|
||||||
else:
|
else:
|
||||||
example_data_path = os.path.join(medir, 'labels.csv')
|
example_data_path = os.path.join(medir, 'labels.csv')
|
||||||
@ -23,4 +23,4 @@ for _, row in df.iterrows():
|
|||||||
if row['Cut'] == 1:
|
if row['Cut'] == 1:
|
||||||
cut = True
|
cut = True
|
||||||
printer.print_image(file_path, cut = cut, rotation=270)
|
printer.print_image(file_path, cut = cut, rotation=270)
|
||||||
os.remove(file_path)
|
os.remove(file_path)
|
||||||
|
Loading…
Reference in New Issue
Block a user