Fix desk.bill.

This commit is contained in:
Sigilante 2024-09-24 15:23:19 -05:00 committed by GitHub
parent a5ddd2e85b
commit bad297e318
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -21,7 +21,7 @@ def rename_and_replace(path, old_name, new_name):
# Rename file
new_file_name = os.path.basename(entry).replace(old_name, new_name)
os.rename(entry, os.path.join(os.path.dirname(entry), new_file_name))
elif os.path.isfile(entry) and os.path.basename(entry) in ['desk.docket-0', 'README.md']:
elif os.path.isfile(entry) and os.path.basename(entry) in ['desk.docket-0', 'README.md', 'desk.bill']:
# Rename file and replace content
with fileinput.FileInput(entry, inplace=True) as file:
for line in file: