diff --git a/kwmr_solver.py b/kwmr_solver.py index 72cef3c53ac3d0232bdc8e2355af209d48956d8a..07ccb5d99b46ed062ad00db669dfeb15bec7071d 100644 --- a/kwmr_solver.py +++ b/kwmr_solver.py @@ -2,6 +2,7 @@ import argparse import os import random import subprocess +import uuid proc = None stop_flag = False @@ -28,7 +29,8 @@ def solve(params): basedir = os.path.abspath(os.path.dirname(__file__)) - solution_filepath = f'{basedir}/a.txt' + aid = str(uuid.uuid4()) + solution_filepath = f'{basedir}/A{aid}.txt' if os.path.exists(solution_filepath): os.remove(solution_filepath)