[Epydoc-commits] SF.net SVN: epydoc: [1264] trunk/epydoc/src/epydoc/util.py
Brought to you by:
edloper
From: <ed...@us...> - 2006-08-21 10:15:11
|
Revision: 1264 Author: edloper Date: 2006-08-21 03:15:08 -0700 (Mon, 21 Aug 2006) ViewCVS: http://svn.sourceforge.net/epydoc/?rev=1264&view=rev Log Message: ----------- - Use absolute paths when checking if a directory is a package. (otherwise, we would get the wrong answer when checking the directory '.'). Modified Paths: -------------- trunk/epydoc/src/epydoc/util.py Modified: trunk/epydoc/src/epydoc/util.py =================================================================== --- trunk/epydoc/src/epydoc/util.py 2006-08-21 10:14:18 UTC (rev 1263) +++ trunk/epydoc/src/epydoc/util.py 2006-08-21 10:15:08 UTC (rev 1264) @@ -45,6 +45,7 @@ # Make sure it's a directory. if not os.path.isdir(dirname): return False + dirname = os.path.abspath(dirname) # Make sure it's a valid identifier. (Special case for # "foo/", where os.path.split -> ("foo", "").) (parent, dir) = os.path.split(dirname) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |