diff --git a/exam_template/python/Python.py b/exam_template/python/Python.py index 4ea595d..8178507 100644 --- a/exam_template/python/Python.py +++ b/exam_template/python/Python.py @@ -7,6 +7,8 @@ from common import replaceContent def makeTmpFile(content): fd, path = tempfile.mkstemp() + while ('_' in path): + fd, path = tempfile.mkstemp() with os.fdopen(fd, 'w') as tmp: tmp.write(content) return path