This commit is contained in:
Paul Gauthier 2024-12-17 17:47:17 -08:00
parent 77d379c021
commit 12491c4983
2 changed files with 14 additions and 7 deletions

View file

@ -659,7 +659,14 @@ def run_test_real(
# restore the original file, in case we interrupted a prev run
# Find the original file in the language-specific practice dir
lang_part = str(testdir).split("/exercises/practice/")[0]
original_fname = Path(lang_part) / "exercises" / "practice" / testdir.name / file_path
original_fname = (
original_dname
/ Path(lang_part)
/ "exercises"
/ "practice"
/ testdir.name
/ file_path
)
if original_fname.exists():
os.makedirs(src.parent, exist_ok=True)
shutil.copy(original_fname, src)