From 3c1d881de7552f84fe8d37026ec3a5669aa21b45 Mon Sep 17 00:00:00 2001 From: cerberus Date: Thu, 2 Oct 2025 15:11:40 +0200 Subject: [PATCH] cleanup --- refit/src/modules/librefit.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/refit/src/modules/librefit.py b/refit/src/modules/librefit.py index 10e1bc5..f42ce72 100644 --- a/refit/src/modules/librefit.py +++ b/refit/src/modules/librefit.py @@ -119,14 +119,16 @@ def get_current_path(path) -> str: """ logger.debug(f"FUNC: get_current_path() MSG: entered function with path = '{path}'") if path is None: + + # Set the current directory if none is passed with the command. path = "." - logger.debug( - f"FUNC: {get_current_path.__name__} MSG: Path now has the value: '{path}'" + logger.warning( + f"FUNC: {get_current_path.__name__}() MSG: Path now has the value: '{path}'" ) return path else: - # Here the check for the path to exist takes place - + + # Checks if the path, entered by the user, exists. if os.path.exists(path) is True: logger.debug( f"FUNC: {get_current_path.__name__} MSG: Path '{path}' exists, continue...."