[REF-2619] Re-init when the template is out of date (#3121)

This commit is contained in:
Masen Furer 2024-04-22 11:32:00 -07:00 committed by GitHub
parent 19007ee2a1
commit 041abb39c8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -893,6 +893,10 @@ def needs_reinit(frontend: bool = True) -> bool:
if not os.path.exists(constants.Dirs.WEB):
return True
# If the template is out of date, then we need to re-init
if not is_latest_template():
return True
if constants.IS_WINDOWS:
console.warn(
"""Windows Subsystem for Linux (WSL) is recommended for improving initial install times."""