don't generate a random extension (not needed!)

This commit is contained in:
Xevion
2019-11-03 22:52:16 -06:00
parent f2117726ea
commit 4cc7b52a14

View File

@@ -78,7 +78,7 @@ class FileProcessor(object):
# Generate a temporary XMP file name
head, tail = os.path.split(self.input_xmp)
name, ext = os.path.splitext(tail)
name += ''.join(random.choices(list(string.ascii_letters), k=10))
name += ' temp'
temp_name = os.path.join(head, name + ext)
# Begin the process of copying stats (happens in an instant)
os.rename(self.input_xmp, temp_name)