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

examples/plugintest: Drop the 'pre-5.0.0' config fixups

It's a pain for typing, and should be long since irrelevant.
This commit is contained in:
Athanasius 2022-12-22 11:30:52 +00:00
parent d76e827dc5
commit 3ed84bcad8
No known key found for this signature in database
GPG Key ID: 772697E181BB2767

View File

@ -13,19 +13,6 @@ from SubA import SubA
from config import appname, appversion, config
# For compatibility with pre-5.0.0
if not hasattr(config, 'get_int'):
config.get_int = config.getint
if not hasattr(config, 'get_str'):
config.get_str = config.get
if not hasattr(config, 'get_bool'):
config.get_bool = lambda key: bool(config.getint(key))
if not hasattr(config, 'get_list'):
config.get_list = config.get
# This could also be returned from plugin_start3()
plugin_name = os.path.basename(os.path.dirname(__file__))