kopia lustrzana https://github.com/OpenDroneMap/ODM
Remove previous report before move
rodzic
38af615657
commit
6dc0c98fa0
|
@ -559,6 +559,8 @@ class OSFMContext:
|
|||
pdf_report.save_report("report.pdf")
|
||||
|
||||
if os.path.exists(osfm_report_path):
|
||||
if os.path.exists(report_path):
|
||||
os.unlink(report_path)
|
||||
shutil.move(osfm_report_path, report_path)
|
||||
else:
|
||||
log.ODM_WARNING("Report could not be generated")
|
||||
|
|
Ładowanie…
Reference in New Issue