moonraker: don't explictly load klippy_apis in init

Instead, look up klippy_apis after all plugins are loaded.  This allows the "CORE_PLUGINS" list to determine the exact order in which core plugins are loaded.

Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
Arksine 2021-02-22 08:48:48 -05:00
parent 979aef2903
commit 4abfb886f5
1 changed files with 1 additions and 1 deletions

View File

@ -105,8 +105,8 @@ class Server:
# Plugin initialization # Plugin initialization
self.plugins = {} self.plugins = {}
self.klippy_apis = self.load_plugin(config, 'klippy_apis')
self._load_plugins(config) self._load_plugins(config)
self.klippy_apis = self.lookup_plugin('klippy_apis')
config.validate_config() config.validate_config()
def start(self): def start(self):