[Epydoc-commits] SF.net SVN: epydoc: [1262] trunk/epydoc/src/epydoc/docintrospecter.py
Brought to you by:
edloper
From: <ed...@us...> - 2006-08-21 10:13:38
|
Revision: 1262 Author: edloper Date: 2006-08-21 03:13:34 -0700 (Mon, 21 Aug 2006) ViewCVS: http://svn.sourceforge.net/epydoc/?rev=1262&view=rev Log Message: ----------- - Fixed bug in introspection when the current directory contained a module with the same name as the module we want to introspect in a different directory. Modified Paths: -------------- trunk/epydoc/src/epydoc/docintrospecter.py Modified: trunk/epydoc/src/epydoc/docintrospecter.py =================================================================== --- trunk/epydoc/src/epydoc/docintrospecter.py 2006-08-21 09:48:17 UTC (rev 1261) +++ trunk/epydoc/src/epydoc/docintrospecter.py 2006-08-21 10:13:34 UTC (rev 1262) @@ -822,7 +822,9 @@ # Add the current directory to sys.path, in case they're trying to # import a module by name that resides in the current directory. - sys.path.insert(0, '') + # But add it to the end -- otherwise, the explicit directory added + # in get_value_from_filename might get overwritten + sys.path.append('') # Supress input and output. (These get restored when we restore # sys to old_sys). This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |