Skip to content

Commit fb74295

Browse files
authored
[CC] adding isdir check
1 parent b1ea54b commit fb74295

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Tests/Methods/Simulation/test_magelmer.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from os import makedirs
2-
from os.path import join
2+
from os.path import join, isdir
33
import pytest
44
from numpy import array, linspace, ones, pi, zeros, sqrt, cos
55
from Tests import save_plot_path
@@ -13,7 +13,8 @@
1313

1414
# Gather results in the same folder
1515
save_path = join(save_plot_path, "Elmer")
16-
makedirs(save_path)
16+
if not isdir(save_path):
17+
makedirs(save_path)
1718

1819

1920
mesh_dict = {

0 commit comments

Comments
 (0)