Commit ec66e04d authored by kliment's avatar kliment

Merge pull request #21 from k-eex/master

Read .pronsolerc from current directory if not found in home directory 
parents 83d593ee 2810993f
......@@ -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