From 481bf32b15f46bcff5f36aa3003adef92379ad31 Mon Sep 17 00:00:00 2001 From: Eric Holscher Date: Mon, 20 Jul 2015 10:50:35 -0700 Subject: [PATCH] Match ignore patterns again full filename --- 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 3110886..9a36f6b 100644 --- a/autoapi/mappers/base.py +++ b/autoapi/mappers/base.py @@ -164,7 +164,7 @@ class SphinxMapperBase(object): # Skip ignored files for ignore_pattern in ignore: - if fnmatch.fnmatch(filename, ignore_pattern): + if fnmatch.fnmatch(os.path.join(root, filename), ignore_pattern): self.app.info("Ignoring %s/%s" % (root, filename)) skip = True