Skip to content

Commit

Permalink
WIP: Stop using os.getcwd
Browse files Browse the repository at this point in the history
skipci
  • Loading branch information
cortadocodes committed Jul 4, 2024
1 parent 43590e9 commit 9387401
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions octue/utils/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 9387401

Please sign in to comment.