From 2dfe3b3fa4b994f5bcdbedc948c0a931ff958b09 Mon Sep 17 00:00:00 2001 From: debianpepper Date: Thu, 7 Sep 2023 10:48:15 +0900 Subject: [PATCH] Updated Signed-off-by: debianpepper --- python_modules/finish_cleanup.py | 4 ++-- python_modules/infra.py | 5 ----- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/python_modules/finish_cleanup.py b/python_modules/finish_cleanup.py index 1b7d559e..0f3e0176 100644 --- a/python_modules/finish_cleanup.py +++ b/python_modules/finish_cleanup.py @@ -21,8 +21,8 @@ FUSATO_ROOT = '/fusato' def make_check_sum(): """ Generate the check sum files """ os.chdir(HOME_FOLDER + FUSATO_ROOT) - current_working_directory = os.getcwd() - for files in os.walk(current_working_directory): + current_working_directory = os.getcwd().replace('/', '/') + for root, dirs, files in os.walk(current_working_directory): for fiso in files: if fiso.endswith('.iso'): sha = "sha512sum " diff --git a/python_modules/infra.py b/python_modules/infra.py index ce8c9d7c..0446e785 100644 --- a/python_modules/infra.py +++ b/python_modules/infra.py @@ -26,11 +26,6 @@ term_size = os.get_terminal_size() # Set up the logging format logger = logging.getLogger() -#handler = logging.StreamHandler() -#formatter = logging.Formatter('%(asctime)s %(name)-12s %(levelname)-8s %(message)s') -#handler.setFormatter(formatter) -#logger.addHandler(handler) -#logger.setLevel(logging.DEBUG) MSG_COPY = "Copying - " MSG_FIN = "Finished - "