Commit 2dc82723 authored by Keegi's avatar Keegi

fix for unitialized variable error when .pronsolerc does not exist

parent 30023a5b
......@@ -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):
"""
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment