Menu

Bug in the way ~/.pydbrc is read?

Help
2007-02-20
2012-12-10
  • Vance Harral

    Vance Harral - 2007-02-20

    pydb 1.20 contains the following code at line 138 of pydb.py:

            # Read $HOME/.pydbrc and ./.pydbrc
            if 'HOME' in os.environ:
                envHome = os.environ['HOME']
                p.setup_source("%s.%src" % (envHome, debugger_name))
            p.setup_source(".%src" % debugger_name);

    The first call to p.setup_source() appears to assume that the
    $HOME environment variable has a trailing '/', which is a problem.

    On my system (RedHat Enterprise 3.0), with tcsh 6.12, $HOME lacks
    a trailing slash.  e.g. my $HOME is "/home/vharral".  So the first
    p.setup_source() call above evaluates to "/home/vharral.pydbrc",
    which doesn't exist.

    If I manually set $HOME to "/home/vharral/", things work OK.  I'm
    not sure if that will cause other problems, but I'll stuff it in
    my .cshrc and see what happens.  In the mean time, if you agree
    that this is a bug, please add it to the fix list.

    Regards,
    VQ

     
    • Rocky Bernstein

      Rocky Bernstein - 2007-02-20

      Thanks for the report. There is a fix in CVS for this now.

      By the way, this HELP forum isn't the place to report bugs. There is a sepaarte bug tracking mechanism for that. Please use that in the future.

       
    • Vance Harral

      Vance Harral - 2007-02-21

      OK, will do.  Thanks again for the quick fixes.

      VQ

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.