mirror of
https://github.com/freedomofpress/dangerzone.git
synced 2025-04-30 18:52:38 +02:00
Merge pull request #139 from firstlookmedia/134-move-file
Use shutil.move instead of os.rename in the final step
This commit is contained in:
commit
1f16433b9a
1 changed files with 1 additions and 1 deletions
|
@ -129,7 +129,7 @@ def convert(input_filename, output_filename, ocr_lang, stdout_callback):
|
||||||
container_output_filename = os.path.join(
|
container_output_filename = os.path.join(
|
||||||
safe_dir, "safe-output-compressed.pdf"
|
safe_dir, "safe-output-compressed.pdf"
|
||||||
)
|
)
|
||||||
os.rename(container_output_filename, output_filename)
|
shutil.move(container_output_filename, output_filename)
|
||||||
|
|
||||||
# We did it
|
# We did it
|
||||||
success = True
|
success = True
|
||||||
|
|
Loading…
Reference in a new issue