From 3a1deef781592e2acfdcd7bcd6785fbd271b02f0 Mon Sep 17 00:00:00 2001 From: "Olivia R. Lynn" Date: Fri, 5 Apr 2024 16:36:54 -0400 Subject: [PATCH] Update add_to_registry.py - var names --- scripts/add_to_registry.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/scripts/add_to_registry.py b/scripts/add_to_registry.py index 0f065acd..aaa9ccb4 100644 --- a/scripts/add_to_registry.py +++ b/scripts/add_to_registry.py @@ -69,12 +69,12 @@ def make_registry_for_data_dir(directory, data_dir, registry_name, recursive=Tru if __name__ == "__main__": - data_dir_or_file = sys.argv[1] + data_to_hash = sys.argv[1] registry_name = sys.argv[2] - if os.path.isfile(data_dir_or_file): - print(f"Making registry at {registry_name} for file {data_dir_or_file}...") - make_registry_for_data_file(data_dir_or_file, registry_name) + if os.path.isfile(data_to_hash): + print(f"Making registry at {registry_name} for file {data_to_hash}...") + make_registry_for_data_file(data_to_hash, registry_name) else: - print(f"Making registry at {registry_name} for data dir {data_dir}...") - make_registry_for_data_dir(".", data_dir, registry_name) + print(f"Making registry at {registry_name} for data dir {data_to_hash}...") + make_registry_for_data_dir(".", data_to_hash, registry_name)