mirror of
https://github.com/Xevion/phototag.git
synced 2025-12-06 03:15:51 -06:00
don't generate a random extension (not needed!)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user