Python script that randomizes various things in DK64. See the readme for current options that are available to be randomized as well as other features.
This pull request includes several improvements and bug fixes to the tools/prepare_live.py script. The changes focus on enhancing the handling of HTML resources, updating file links, and versioning JavaScript files.
Enhancements to HTML resource handling:
Added a new import for the re module to enable regular expression operations.
Introduced logic to load the version from version.py for appending version query parameters to JavaScript files.
Renamed the variable list to resources in the find_list_resources function to improve code readability.
Updating file links and versioning:
Added logic to append version query parameters to local JavaScript file links.
Implemented a regex pattern to update JavaScript blocks with version query parameters and wrote the modified HTML content back to the file.
This pull request includes several improvements and bug fixes to the
tools/prepare_live.py
script. The changes focus on enhancing the handling of HTML resources, updating file links, and versioning JavaScript files.Enhancements to HTML resource handling:
re
module to enable regular expression operations.version.py
for appending version query parameters to JavaScript files.list
toresources
in thefind_list_resources
function to improve code readability.Updating file links and versioning: