mirror of
https://github.com/fergalmoran/dss.git
synced 2025-12-22 17:48:51 +00:00
8 lines
215 B
Python
8 lines
215 B
Python
import uuid
|
|
import os
|
|
|
|
def generate_save_file_name(prefix, filename):
|
|
filename, extension = os.path.splitext(filename)
|
|
ret = "%s%s" % ('/'.join([prefix, str(uuid.uuid1())]), extension)
|
|
return ret
|