upgrade
Perform a ONE TIME version-to-version deployment cleanup at session load for 4.8.5.
Attributes
mlogger = get_logger(__name__)
module-attribute
Functions:
remove_leftover_temp_files()
4.8.5 had a bug that would create temp files with extension ..bak.
This cleans them up.
Source code in pyrevitlib/pyrevit/versionmgr/upgrade.py
encrypt_plaintext_extension_credentials()
Seal any extension credential still stored in plaintext in the config.
Runs here, once per session, rather than in the session manager: this module is where pyRevit keeps one-time deployment migrations, and by the time it runs the config is built and any pending upgrade has been applied.
A failure is logged and swallowed. A config that cannot be migrated is a config that still works, and refusing to start Revit over it would be a worse outcome than leaving a token where it is.