Skip to content
Snippets Groups Projects
Commit b666c076 authored by Chris Lamb's avatar Chris Lamb :eyes:
Browse files

If our temporary directory does not exist anymore, recreate it.

This can happen during (for example) tests that call `main(...)`.
parent f6fc6ce4
No related branches found
No related tags found
No related merge requests found
Pipeline #229084 failed
......@@ -88,7 +88,7 @@ def clean_all_temp_files():
def _get_base_temporary_directory():
global _BASEDIR
if _BASEDIR is None:
if _BASEDIR is None or not os.path.exists(_BASEDIR.name):
try:
# Try and generate a potentially-useful suffix to our temporary directory
suffix = "_{}".format(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment