Commit 2810993f authored by Keegi's avatar Keegi

Read .pronsolerc from current directory if not found in home directory

parent 83d593ee
......@@ -179,8 +179,11 @@ class pronsole(cmd.Cmd):
def load_rc(self,rc_filename=".pronsolerc"):
self.processing_rc=True
try:
try:
rc=open(os.path.join(os.path.expanduser("~"),rc_filename))
except IOError:
rc=open(rc_filename)
for rc_cmd in rc:
if not rc_cmd.lstrip().startswith("#"):
self.onecmd(rc_cmd)
......
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