1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-17 17:42:20 +03:00

Merge branch 'main' into releases

This commit is contained in:
David Sangrey 2023-08-03 22:37:26 -04:00
commit a0f17bbb98
No known key found for this signature in database
GPG Key ID: 3AEADBB0186884BC
3 changed files with 11 additions and 5 deletions

View File

@ -33,6 +33,12 @@ produce the Windows executables and installer.
currently used version in a given branch. 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 Release 5.9.2
=== ===
This release fixes a critical issue on clean installs which would not update the This release fixes a critical issue on clean installs which would not update the

View File

@ -52,7 +52,7 @@ appcmdname = 'EDMC'
# <https://semver.org/#semantic-versioning-specification-semver> # <https://semver.org/#semantic-versioning-specification-semver>
# Major.Minor.Patch(-prerelease)(+buildmetadata) # Major.Minor.Patch(-prerelease)(+buildmetadata)
# NB: Do *not* import this, use the functions appversion() and appversion_nobuild() # 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 _cached_version: Optional[semantic_version.Version] = None
copyright = '© 2015-2019 Jonathan Harris, 2020-2023 EDCD' copyright = '© 2015-2019 Jonathan Harris, 2020-2023 EDCD'

View File

@ -58,10 +58,10 @@ class Plugin(object):
try: try:
filename = 'plugin_' filename = 'plugin_'
filename += name.encode(encoding='ascii', errors='replace').decode('utf-8').replace('.', '_') filename += name.encode(encoding='ascii', errors='replace').decode('utf-8').replace('.', '_')
spec = importlib.util.spec_from_file_location(filename, loadfile) # type: ignore module = importlib.machinery.SourceFileLoader(
module = importlib.util.module_from_spec(spec) # type: ignore filename,
spec.loader.exec_module(module) # type: ignore loadfile
# These type-ignores will need to be looked at. MyPy is wrong. ).load_module()
if getattr(module, 'plugin_start3', None): if getattr(module, 'plugin_start3', None):
newname = module.plugin_start3(os.path.dirname(loadfile)) newname = module.plugin_start3(os.path.dirname(loadfile))
self.name = newname and str(newname) or name self.name = newname and str(newname) or name