summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xLib/pdb.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/pdb.py b/Lib/pdb.py
index f4a0c89..697fb88 100755
--- a/Lib/pdb.py
+++ b/Lib/pdb.py
@@ -59,20 +59,20 @@ class Pdb(bdb.Bdb, cmd.Cmd):
if os.environ.has_key('HOME'):
envHome = os.environ['HOME']
try:
- rcFile = open (envHome + "/.pdbrc")
+ rcFile = open(os.path.join(envHome, ".pdbrc"))
except IOError:
pass
else:
for line in rcFile.readlines():
- self.rcLines.append (line)
+ self.rcLines.append(line)
rcFile.close()
try:
- rcFile = open ("./.pdbrc")
+ rcFile = open(".pdbrc")
except IOError:
pass
else:
for line in rcFile.readlines():
- self.rcLines.append (line)
+ self.rcLines.append(line)
rcFile.close()
def reset(self):