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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
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.
OK, will do. Thanks again for the quick fixes.
VQ