From 47b0f4ba968816b6fa948eaed63d0279e177a3f2 Mon Sep 17 00:00:00 2001 From: Tom Bocklisch Date: Tue, 5 Dec 2017 10:36:26 +0100 Subject: [PATCH] fixed glob absolute path --- rasa_nlu/project.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rasa_nlu/project.py b/rasa_nlu/project.py index 4683a818dc6f..e1483b6c5825 100644 --- a/rasa_nlu/project.py +++ b/rasa_nlu/project.py @@ -183,6 +183,6 @@ def _list_models_in_dir(path): if not path or not os.path.isdir(path): return [] else: - return [model + return [os.path.relpath(model, path) for model in glob.glob(os.path.join(path, '*')) if os.path.isdir(model)]