From d34af13767e88122e35483ef59b9579b9683b4dc Mon Sep 17 00:00:00 2001 From: Eric Holscher Date: Fri, 4 Nov 2016 20:50:05 -0700 Subject: [PATCH] Fix pathing --- autoapi/mappers/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoapi/mappers/base.py b/autoapi/mappers/base.py index 06f023c..6ec0dc4 100644 --- a/autoapi/mappers/base.py +++ b/autoapi/mappers/base.py @@ -120,7 +120,7 @@ class PythonMapperBase(object): slug = unidecode.unidecode(slug) slug = slug.replace('-', '') slug = re.sub(r'[^\w\.]+', '-', slug).strip('-') - return slug.split('.')[-1] + return os.path.join(*slug.split('.')) def include_dir(self, root): """Return directory of file"""