mirror of
https://github.com/vladmandic/automatic
synced 2026-09-19 09:14:35 +02:00
fix bug when there are dots in the file name
This commit is contained in:
@@ -333,7 +333,8 @@ def setup_ui(ui, gallery):
|
||||
|
||||
# write description to a file
|
||||
def save_description(filename,descrip):
|
||||
filename = filename.split('.')[0]+".description.txt"
|
||||
lastDotIndex = filename.rindex('.')
|
||||
filename = filename[0:lastDotIndex]+".description.txt"
|
||||
if descrip != "":
|
||||
try:
|
||||
f = open(filename,'w')
|
||||
|
||||
Reference in New Issue
Block a user