fix for unitialized variable error when .pronsolerc does not exist
parent
30023a5be1
commit
2dc8272345
|
@ -313,7 +313,8 @@ class pronsole(cmd.Cmd):
|
||||||
except IOError:
|
except IOError:
|
||||||
self.load_rc(rc_filename)
|
self.load_rc(rc_filename)
|
||||||
except IOError:
|
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):
|
def save_in_rc(self,key,definition):
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in New Issue