diff options
author | Georg Brandl <georg@python.org> | 2009-09-03 22:00:28 +0200 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2009-09-03 22:00:28 +0200 |
commit | 917669a39f2ef09e361edcf1443888b139b34e2d (patch) | |
tree | b7056459ea5411206861713794a3134d04dacab3 /sphinx/ext/autodoc.py | |
parent | 9fce647b1404f3e7e40edcdb3db8dd4600a57418 (diff) | |
parent | eff2bdd5151573287e226b6d5ad75b133a738d91 (diff) | |
download | sphinx-git-917669a39f2ef09e361edcf1443888b139b34e2d.tar.gz |
merge with 0.6
Diffstat (limited to 'sphinx/ext/autodoc.py')
-rw-r--r-- | sphinx/ext/autodoc.py | 3 |
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) |