Skip to content

Commit

Permalink
Restore add_extension
Browse files Browse the repository at this point in the history
  • Loading branch information
IanCa committed May 20, 2024
1 parent c02af7f commit d601d8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hed/scripts/script_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def validate_schema(file_path):

def add_extension(basename, extension):
"""Generate the final name for a given extension. Only .tsv varies notably."""
if extension and extension.lower() == ".tsv":
if extension.lower() == ".tsv":
parent_path, basename = os.path.split(basename)
return os.path.join(parent_path, "hedtsv", basename)
return basename + extension
Expand Down

0 comments on commit d601d8b

Please sign in to comment.