Skip to content

Commit 7c1eead

Browse files
authored
Fixed output filename generation
1 parent d97c796 commit 7c1eead

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

SC-Encode.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,10 @@ def Conversion():
7777
OutNameList = [i for i in (Images[0])]
7878
DotIndex = OutNameList.index('.')
7979
OutName = ''.join(OutNameList[:DotIndex])
80+
81+
while OutName.endswith('_'):
82+
83+
OutName = OutName[:-1]
8084

8185
ImagesPixelList = []
8286
ImagesTypeList = []

0 commit comments

Comments
 (0)