Commit 4229d449 authored by kliment's avatar kliment

Merge branch 'master' of github.com:kliment/Printrun

parents 198f6ec5 ec66e04d
...@@ -180,7 +180,10 @@ class pronsole(cmd.Cmd): ...@@ -180,7 +180,10 @@ class pronsole(cmd.Cmd):
def load_rc(self,rc_filename=".pronsolerc"): def load_rc(self,rc_filename=".pronsolerc"):
self.processing_rc=True self.processing_rc=True
try: try:
rc=open(os.path.join(os.path.expanduser("~"),rc_filename)) try:
rc=open(os.path.join(os.path.expanduser("~"),rc_filename))
except IOError:
rc=open(rc_filename)
for rc_cmd in rc: for rc_cmd in rc:
if not rc_cmd.lstrip().startswith("#"): if not rc_cmd.lstrip().startswith("#"):
self.onecmd(rc_cmd) 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