Convert messages to f-strings and overides to list + other minor edits #23
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi, your script is very useful! Reading through it I thought that some parts could be made a bit more readable so here's what I did:
h_line = 80 * "#"
since it was used oftenblendfile_override_setting
from a string to a list that is then joined before being written to file, again for readability but also because it's recommended in PEP 8pathlib import Path
since we already importos
we can useos.path.exists()
I paid attention to not change the script's output or touch any of the functionalities, so apart from a couple of messages where I had to move a line break by a word or two, everything should be exactly the same from the user point of view.