[Epydoc-commits] SF.net SVN: epydoc: [1641] trunk/epydoc/src/epydoc/util.py
Brought to you by:
edloper
From: <dva...@us...> - 2007-09-24 22:55:22
|
Revision: 1641 http://epydoc.svn.sourceforge.net/epydoc/?rev=1641&view=rev Author: dvarrazzo Date: 2007-09-24 15:55:21 -0700 (Mon, 24 Sep 2007) Log Message: ----------- - Don't assume Python sources really exist in the file system: with some import hooks (e.g. compressed .egg) this is not the case. Modified Paths: -------------- trunk/epydoc/src/epydoc/util.py Modified: trunk/epydoc/src/epydoc/util.py =================================================================== --- trunk/epydoc/src/epydoc/util.py 2007-09-24 22:46:11 UTC (rev 1640) +++ trunk/epydoc/src/epydoc/util.py 2007-09-24 22:55:21 UTC (rev 1641) @@ -37,6 +37,7 @@ def is_src_filename(filename): if not isinstance(filename, basestring): return False + if not os.path.exists(filename): return False return os.path.splitext(filename)[1] in PY_SRC_EXTENSIONS def is_package_dir(dirname): This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |