|
@@ -26,7 +26,10 @@ def main():
|
|
|
if not os.path.exists(output_folder):
|
|
|
os.makedirs(output_folder)
|
|
|
|
|
|
- os.system(f'./build/main/rawls_convert --image {img} --outfile {output_path}')
|
|
|
+ if not os.path.exists(output_path):
|
|
|
+ os.system(f'./build/main/rawls_convert --image {img} --outfile {output_path}')
|
|
|
+ else:
|
|
|
+ print(f'{output_path} already exists')
|
|
|
|
|
|
|
|
|
if __name__ == "__main__":
|