From 2dc82723458b230dc7d98df727095db9296afed5 Mon Sep 17 00:00:00 2001 From: Keegi Date: Mon, 18 Jul 2011 18:25:05 +0300 Subject: [PATCH] fix for unitialized variable error when .pronsolerc does not exist --- pronsole.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pronsole.py b/pronsole.py index 7e15d4f..e505977 100755 --- a/pronsole.py +++ b/pronsole.py @@ -313,7 +313,8 @@ class pronsole(cmd.Cmd): except IOError: self.load_rc(rc_filename) except IOError: - pass + # make sure the filename is initialized + self.rc_filename = os.path.abspath(os.path.join(os.path.expanduser("~"),rc_filename)) def save_in_rc(self,key,definition): """