fix for unitialized variable error when .pronsolerc does not exist

master
Keegi 2011-07-18 18:25:05 +03:00
parent 30023a5be1
commit 2dc8272345
1 changed files with 2 additions and 1 deletions

View File

@ -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):
"""