From 0a730a02863e935833003738ef86103d2f8bf0e0 Mon Sep 17 00:00:00 2001 From: Daniel McKnight Date: Thu, 19 Sep 2024 18:38:03 -0700 Subject: [PATCH] Remove `mycroft` extra dependency and conditionalize imports --- neon_core/configuration/__init__.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/neon_core/configuration/__init__.py b/neon_core/configuration/__init__.py index 89329683d..3079e3c77 100644 --- a/neon_core/configuration/__init__.py +++ b/neon_core/configuration/__init__.py @@ -60,5 +60,8 @@ def patch_config(config: dict = None): local_config.update(config) local_config.store() Configuration().reload() - import mycroft.configuration - mycroft.configuration.Configuration().reload() + try: + import mycroft.configuration + mycroft.configuration.Configuration().reload() + except ImportError: + pass \ No newline at end of file