diff --git a/source/blender/blenkernel/intern/appdir.cc b/source/blender/blenkernel/intern/appdir.cc index 4ff526881f9..c51ce39f601 100644 --- a/source/blender/blenkernel/intern/appdir.cc +++ b/source/blender/blenkernel/intern/appdir.cc @@ -1209,7 +1209,7 @@ void BKE_tempdir_init(const char *userdir) BKE_tempdir_session_purge(); /* Perform two passes, the first pass for the user preference path, - * then a second pass if the the preferences failed to create the *session* sub-directory. + * then a second pass if the preferences failed to create the *session* sub-directory. * * This avoid problems if the preferences points to a path without write access, * `C:\` or `/` for example. */ diff --git a/tests/python/bl_pyapi_bpy_app_tempdir.py b/tests/python/bl_pyapi_bpy_app_tempdir.py index b9892a9279f..d339f23229f 100644 --- a/tests/python/bl_pyapi_bpy_app_tempdir.py +++ b/tests/python/bl_pyapi_bpy_app_tempdir.py @@ -2,7 +2,7 @@ # # SPDX-License-Identifier: GPL-2.0-or-later -# ./blender.bin --background --factory-startup --python tests/python/bl_tempfile.py -- --verbose +# ./blender.bin --background --factory-startup --python tests/python/bl_pyapi_bpy_app_tempdir.py -- --verbose # NOTE(ideasman42): # @@ -41,8 +41,6 @@ TEMP_ENV = "TEMP" if is_win32 else "TMPDIR" if os.environ.get("TMP") is not None: del os.environ["TMP"] -BASE_DIR = "" - def system_temp_set(path: str) -> None: os.environ[TEMP_ENV] = path