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