From 263b88b5e99936bb0fb4a7540f6bc076f14a22e2 Mon Sep 17 00:00:00 2001 From: MarcoFavorito Date: Wed, 24 Jun 2020 11:12:59 +0200 Subject: [PATCH] update duplicate skill model classes check filter out those whose module path starts with 'packages.' --- aea/skills/base.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/aea/skills/base.py b/aea/skills/base.py index 2d5e045764..e6d4cd1476 100644 --- a/aea/skills/base.py +++ b/aea/skills/base.py @@ -539,7 +539,8 @@ def parse_module( filter( lambda x: any(re.match(shared, x[0]) for shared in model_names) and Model in inspect.getmro(x[1]) - and not str.startswith(x[1].__module__, "aea."), + and not str.startswith(x[1].__module__, "aea.") + and not str.startswith(x[1].__module__, "packages."), classes, ) )