Bugfix: Fix -p flag when passing -s (#1022)

This commit is contained in:
KingWampy 2021-02-11 12:25:19 -05:00 committed by GitHub
commit 05ca2949fd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -291,12 +291,11 @@ class SceneFileWriter(object):
image : np.array
The pixel array of the image to save.
"""
file_path = self.image_file_path
if not config["output_file"]:
file_path = add_version_before_extension(file_path)
self.image_file_path = add_version_before_extension(self.image_file_path)
image.save(file_path)
self.print_file_ready_message(file_path)
image.save(self.image_file_path)
self.print_file_ready_message(self.image_file_path)
def idle_stream(self):
"""