From 91d05e9e88de84f1bde096d23750adb0c9113cd2 Mon Sep 17 00:00:00 2001 From: vangef Date: Fri, 10 Mar 2023 12:57:37 +0000 Subject: [PATCH] fix for gradebook_dir_name value --- utils/inspector.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/inspector.py b/utils/inspector.py index 51575dd..334a503 100644 --- a/utils/inspector.py +++ b/utils/inspector.py @@ -40,7 +40,7 @@ def get_hashes_in_dir(dir_path: str, excluded_filenames: list = []) -> list: # def generate_hashes_gradebook(gradebook_dir_path: str) -> str: # main function for hashing all files in gradebook - gradebook_dir_name = os.path.abspath(gradebook_dir_path).split(os.path.sep) # get name of gradebook by separating path and use rightmost part + gradebook_dir_name = os.path.abspath(gradebook_dir_path).split(os.path.sep)[-1] # get name of gradebook by separating path and use rightmost part if not os.path.isdir(gradebook_dir_path): exit(f'Directory {gradebook_dir_path} does not exist.\nMake sure "{gradebook_dir_name}" exists in "BB_gradebooks".\n')