From 93874014050930f9505f81b9580ba084d894eb84 Mon Sep 17 00:00:00 2001 From: cortadocodes Date: Thu, 4 Jul 2024 17:09:31 +0100 Subject: [PATCH] WIP: Stop using `os.getcwd` skipci --- octue/utils/metadata.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/octue/utils/metadata.py b/octue/utils/metadata.py index a5f631146..780ead4cd 100644 --- a/octue/utils/metadata.py +++ b/octue/utils/metadata.py @@ -107,10 +107,7 @@ def _get_absolute_path(path): try: return os.path.abspath(path) except FileNotFoundError: - - logger.warning( - f"Attempt to get current working directory to test if this works on non-POSIX filesystem: {os.getcwd()}" - ) + logger.warning("os.path.abspath failed on non-POSIX filesystem.") # Make the directories above the path if `os.path.dirname` doesn't return an empty string. if os.path.dirname(path):