Merge pull request #51272 from akien-mga/scons-message-status-override

SCons: Fix info message when defining `GODOT_VERSION_STATUS`
This commit is contained in:
Rémi Verschelde 2021-08-05 13:32:20 +02:00 committed by GitHub
commit 66d968e4b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -83,7 +83,7 @@ def update_version(module_version_string=""):
godot_status = str(version.status)
if os.getenv("GODOT_VERSION_STATUS") != None:
godot_status = str(os.getenv("GODOT_VERSION_STATUS"))
print("Using version status '%s', overriding the original '%s'.".format(godot_status, str(version.status)))
print("Using version status '{}', overriding the original '{}'.".format(godot_status, str(version.status)))
f.write('#define VERSION_STATUS "' + godot_status + '"\n')
f.write('#define VERSION_BUILD "' + str(build_name) + '"\n')
f.write('#define VERSION_MODULE_CONFIG "' + str(version.module_config) + module_version_string + '"\n')