Merge branch 'main' into releases

This commit is contained in:
David Sangrey committed 2023-08-03 22:37:26 -04:00
commit a0f17bbb98
3 files changed
+11 -5

No files matched your search

+6
View File
@@ -33,6 +33,12 @@ produce the Windows executables and installer.
currently used version in a given branch.
---
Release 5.9.3
===
This release is identical to 5.9.3, except reverts a bad change.
- REVERTS Deprecated load_module() is now retired (#1462)
Release 5.9.2
===
This release fixes a critical issue on clean installs which would not update the
+1 -1
View File
@@ -52,7 +52,7 @@ appcmdname = 'EDMC'
# <https://semver.org/#semantic-versioning-specification-semver>
# Major.Minor.Patch(-prerelease)(+buildmetadata)
# NB: Do *not* import this, use the functions appversion() and appversion_nobuild()
_static_appversion = '5.9.2'
_static_appversion = '5.9.3'
_cached_version: Optional[semantic_version.Version] = None
copyright = '© 2015-2019 Jonathan Harris, 2020-2023 EDCD'
+4 -4
View File
@@ -58,10 +58,10 @@ class Plugin(object):
try:
filename = 'plugin_'
filename += name.encode(encoding='ascii', errors='replace').decode('utf-8').replace('.', '_')
spec = importlib.util.spec_from_file_location(filename, loadfile) # type: ignore
module = importlib.util.module_from_spec(spec) # type: ignore
spec.loader.exec_module(module) # type: ignore
# These type-ignores will need to be looked at. MyPy is wrong.
module = importlib.machinery.SourceFileLoader(
filename,
loadfile
).load_module()
if getattr(module, 'plugin_start3', None):
newname = module.plugin_start3(os.path.dirname(loadfile))
self.name = newname and str(newname) or name