pymapdl
pymapdl copied to clipboard
Temporary directory is not removed when `remove_temp_dir_on_exit` = True
Discussed in https://github.com/ansys/pymapdl/discussions/3244
Originally posted by jinfaz567 July 8, 2024 I set the parameter "remove_temp_dir_on_exit" but it seems doesn't work. I checked the temporary directory. It's still there. This is my code.
from ansys.mapdl.core import launch_mapdl
mapdl = launch_mapdl(jobname="job_1", override=True, remove_temp_dir_on_exit=True)
mapdl.finish()
mapdl.clear()
l = 60
w = 10
h = 6
mapdl.prep7()
mapdl.block(0, l, -w / 2, w / 2, -h / 2, h / 2)
mapdl.finish()
Does anyone know why?