This commit is contained in:
Dict Xiong 2022-08-07 15:05:04 +08:00
parent b6d9c805fe
commit 6208adec3f

View File

@ -20,6 +20,7 @@ def get_uuid_raw() -> str:
if os.path.exists(i):
with open(i, "r") as f:
return f.read().strip()
if not os.path.exists(os.path.dirname(possible_uuid_files[-1])):
os.mkdir(os.path.dirname(possible_uuid_files[-1]))
with open(possible_uuid_files[-1], 'w') as f:
ans = str(uuid.uuid4())