mirror of
https://github.com/sigilante/sunrise.git
synced 2024-11-26 23:43:49 +03:00
Fix desk.bill.
This commit is contained in:
parent
a5ddd2e85b
commit
bad297e318
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user