Skip to content

Commit 24b6289

Browse files
C method checker: create parent dir for output
1 parent 20d66be commit 24b6289

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

C-method/checker.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,9 @@ def check_task_2():
9595
print("Eroare de rulare! Posibil segmentation fault.")
9696
continue
9797

98+
# Creaza directoarele parinte pentru output (daca nu exista deja)
99+
os.makedirs(os.path.dirname(output_test), exist_ok=True)
100+
98101
with open(output_test, 'w') as f:
99102
f.write(result.stdout)
100103

0 commit comments

Comments
 (0)