Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Temporary directory is not removed when remove_temp_dir_on_exit = True #3246

Open
germa89 opened this issue Jul 8, 2024 Discussed in #3244 · 3 comments · Fixed by #3247
Open

Temporary directory is not removed when remove_temp_dir_on_exit = True #3246

germa89 opened this issue Jul 8, 2024 Discussed in #3244 · 3 comments · Fixed by #3247
Assignees
Labels
bug Issue, problem or error in PyMAPDL

Comments

@germa89
Copy link
Collaborator

germa89 commented Jul 8, 2024

Discussed in #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?

@germa89 germa89 added the bug Issue, problem or error in PyMAPDL label Jul 8, 2024
@germa89 germa89 self-assigned this Jul 8, 2024
@mikerife
Copy link

mikerife commented Jul 8, 2024

@germa89 happens on MS Windows 10, PyMAPDL 0.68.1, Python 3.10 too.
Mike

@germa89
Copy link
Collaborator Author

germa89 commented Jul 8, 2024

Thank you @mikerife I was forgetting the ansys_ on the tmp dir name.

Reminder

Only directories on the OS system temporary directory starting with ansys_ are deleted.

@germa89 germa89 reopened this Aug 6, 2024
@germa89
Copy link
Collaborator Author

germa89 commented Aug 6, 2024

It seems I didn't fix it properly :(

#3244 (reply in thread)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue, problem or error in PyMAPDL
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants