Skip to content

Commit 4e39c6e

Browse files
committed
Fix reset_pyvista
1 parent 4f36c83 commit 4e39c6e

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

doc/source/conf.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@
99
from ansys.dpf.core.examples import get_example_required_minimum_dpf_version
1010
from ansys_sphinx_theme import ansys_favicon, get_version_match, pyansys_logo_light_mode, pyansys_logo_dark_mode
1111

12+
# Save figures in specified directory
13+
pyvista.FIGURE_PATH = os.path.join(os.path.abspath("./images/"), "auto-generated/")
14+
if not os.path.exists(pyvista.FIGURE_PATH):
15+
os.makedirs(pyvista.FIGURE_PATH)
16+
1217
# -- Project information -----------------------------------------------------
1318

1419
project = "PyDPF-Core"
@@ -175,8 +180,6 @@ def reset_pyvista(gallery_conf, fname):
175180
pyvista.global_theme.window_size = np.array([1024, 768]) * 2
176181
# Save figures in specified directory
177182
pyvista.FIGURE_PATH = os.path.join(os.path.abspath("./images/"), "auto-generated/")
178-
if not os.path.exists(pyvista.FIGURE_PATH):
179-
os.makedirs(pyvista.FIGURE_PATH)
180183

181184

182185
pyvista.global_theme.lighting = False

0 commit comments

Comments
 (0)