Menu

#119 epydoc (without the ".py") needs sys.path hack

devel (cvs)
closed-fixed
5
2006-08-22
2006-08-20
John J Lee
No

epydoc.py has this hack:

import sys, os.path
script_path = os.path.abspath(sys.path[0])
sys.path = [p for p in sys.path if
os.path.abspath(p) != script_path]

epydoc (without the ".py") doesn't have this. On my
Gentoo Linux system (Python 2.4.2), it fails for the
same reason as would epydoc.py without it. Adding
those three lines fixes it.

Discussion

  • Edward Loper

    Edward Loper - 2006-08-22
    • status: open --> closed-fixed
     
  • Edward Loper

    Edward Loper - 2006-08-22

    Logged In: YES
    user_id=195958

    Thanks for pointing this out. (The intention was that you
    would copy the 'epydoc' script to some other directory,
    but it really should work from the scripts/ directory
    too.) Fixed in subversion revision 1285.

     

Log in to post a comment.