summaryrefslogtreecommitdiff
path: root/sphinx/ext/autodoc.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2009-09-03 22:00:28 +0200
committerGeorg Brandl <georg@python.org>2009-09-03 22:00:28 +0200
commit917669a39f2ef09e361edcf1443888b139b34e2d (patch)
treeb7056459ea5411206861713794a3134d04dacab3 /sphinx/ext/autodoc.py
parent9fce647b1404f3e7e40edcdb3db8dd4600a57418 (diff)
parenteff2bdd5151573287e226b6d5ad75b133a738d91 (diff)
downloadsphinx-git-917669a39f2ef09e361edcf1443888b139b34e2d.tar.gz
merge with 0.6
Diffstat (limited to 'sphinx/ext/autodoc.py')
-rw-r--r--sphinx/ext/autodoc.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/sphinx/ext/autodoc.py b/sphinx/ext/autodoc.py
index 2b280d673..bf7fb90ce 100644
--- a/sphinx/ext/autodoc.py
+++ b/sphinx/ext/autodoc.py
@@ -631,6 +631,9 @@ class Documenter(object):
except PycodeError, err:
# no source file -- e.g. for builtin and C modules
self.analyzer = None
+ # at least add the module.__file__ as a dependency
+ if hasattr(self.module, '__file__') and self.module.__file__:
+ self.directive.filename_set.add(self.module.__file__)
else:
self.directive.filename_set.add(self.analyzer.srcname)