Skip to content

Commit

Permalink
Strip file extention from registry_name first
Browse files Browse the repository at this point in the history
  • Loading branch information
OliviaLynn committed Apr 18, 2024
1 parent 6e07cc9 commit 034369d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/add_to_registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def make_registry_for_data_dir(directory, data_dir, registry_name, recursive=Tru
if __name__ == "__main__":
data_to_hash = sys.argv[1]
registry_name = sys.argv[2]
registry_hash_name = f"{registry_name}_hash.txt"
registry_hash_name = f"{os.path.splitext(registry_name)[0]}-hash.txt"

if os.path.isfile(data_to_hash):
print(f"Making registry at {registry_name} for file {data_to_hash}...")
Expand Down

0 comments on commit 034369d

Please sign in to comment.