From 3e47a6e48b3b16db9b24e19143185a3aed0822ce Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Thu, 5 Nov 2020 15:58:32 +0100 Subject: [PATCH] get_data_mod: fix error message when module not found (pythondata modules are named only with "-" and not "_"). --- litex/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/litex/__init__.py b/litex/__init__.py index 5f37b49da..897bfd297 100644 --- a/litex/__init__.py +++ b/litex/__init__.py @@ -11,6 +11,8 @@ def get_data_mod(data_type, data_name): dm = l['dm'] return dm except ImportError as e: + data_type = data_type.replace("_", "-") + data_name = data_name.replace("_", "-") raise ImportError("""\ pythondata-{dt}-{dn} module not installed! Unable to use {dn} {dt}. {e}