[Epydoc-commits] SF.net SVN: epydoc: [1285] trunk/epydoc/src/scripts/epydoc
Brought to you by:
edloper
From: <ed...@us...> - 2006-08-22 01:44:41
|
Revision: 1285 Author: edloper Date: 2006-08-21 18:44:36 -0700 (Mon, 21 Aug 2006) ViewCVS: http://svn.sourceforge.net/epydoc/?rev=1285&view=rev Log Message: ----------- Fixed SF bug [ 1543564 ] epydoc (without the ".py") needs sys.path hack. Modified Paths: -------------- trunk/epydoc/src/scripts/epydoc Modified: trunk/epydoc/src/scripts/epydoc =================================================================== --- trunk/epydoc/src/scripts/epydoc 2006-08-22 01:44:11 UTC (rev 1284) +++ trunk/epydoc/src/scripts/epydoc 2006-08-22 01:44:36 UTC (rev 1285) @@ -3,6 +3,12 @@ # Call the command line interface for Epydoc. # +# Make sure that we don't get confused between an epydoc.py script and +# the real epydoc package. +import sys, os.path +if os.path.exists(os.path.join(sys.path[0], 'epydoc.py')): + del sys.path[0] + from epydoc.cli import cli cli() This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |