From 873316d6db1296b53e179bc59bdac19994106a16 Mon Sep 17 00:00:00 2001 From: Daniel McKnight Date: Tue, 24 Oct 2023 18:29:34 -0700 Subject: [PATCH] Troubleshooting test failure --- neon_core/config.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/neon_core/config.py b/neon_core/config.py index b675c4bb7..28e0d1c16 100644 --- a/neon_core/config.py +++ b/neon_core/config.py @@ -55,9 +55,12 @@ def setup_resolve_resource_file(): """ from ovos_utils.log import log_deprecation from neon_utils.file_utils import resolve_neon_resource_file + try: + from mycroft.util.file_utils import resolve_resource_file + except (ImportError, AttributeError): + resolve_resource_file = None def patched_resolve_resource_file(res_name): - from mycroft.util.file_utils import resolve_resource_file log_deprecation("This method is deprecated; use " "`ovos_utils.file_utils.resolve_resource_file.", "23.12.1")