Skip to content

Commit

Permalink
fixed glob absolute path
Browse files Browse the repository at this point in the history
  • Loading branch information
tmbo committed Dec 5, 2017
1 parent 7f86adf commit 47b0f4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rasa_nlu/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)]

0 comments on commit 47b0f4b

Please sign in to comment.