Fix compilation with custom "GODOT_VERSION_STATUS"

This commit is contained in:
Björn Feber 2022-09-25 13:26:47 +02:00 committed by GitHub
parent 15ac442247
commit d4dba877d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -105,7 +105,7 @@ def get_version_info(module_version_string="", silent=False):
if os.getenv("GODOT_VERSION_STATUS") != None:
version_info["status"] = str(os.getenv("GODOT_VERSION_STATUS"))
if not silent:
print(f"Using version status '{version_info.status}', overriding the original '{version.status}'.")
print(f"Using version status '{version_info['status']}', overriding the original '{version.status}'.")
# Parse Git hash if we're in a Git repo.
githash = ""