File tree 1 file changed +8
-3
lines changed
1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -711,10 +711,15 @@ def accept(self):
711
711
# Determine final exported file path (and replace blank paths with default ones)
712
712
default_filename = "Untitled Project"
713
713
default_folder = os .path .join (info .HOME_PATH )
714
- if export_type != _ ("Image Sequence" ):
715
- file_name_with_ext = "%s.%s" % (self .txtFileName .text ().strip () or default_filename , self .txtVideoFormat .text ().strip ())
716
- else :
714
+ if export_type == _ ("Image Sequence" ):
717
715
file_name_with_ext = "%s%s" % (self .txtFileName .text ().strip () or default_filename , self .txtImageFormat .text ().strip ())
716
+ else :
717
+ file_ext = self .txtVideoFormat .text ().strip ()
718
+ file_name_with_ext = self .txtFileName .text ().strip () or default_filename
719
+ # Append extension, if not already present
720
+ if not file_name_with_ext .endswith (file_ext ):
721
+ file_name_with_ext = '{}.{}' .format (file_name_with_ext , file_ext )
722
+
718
723
export_file_path = os .path .join (self .txtExportFolder .text ().strip () or default_folder , file_name_with_ext )
719
724
log .info ("Export path: %s" % export_file_path )
720
725
You can’t perform that action at this time.
0 commit comments