This commit is contained in:
2025-10-02 15:11:40 +02:00
parent b4e5694b7b
commit 3c1d881de7

View File

@@ -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...."