cleanup
This commit is contained in:
@@ -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...."
|
||||
|
||||
Reference in New Issue
Block a user