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

master
kliment 2011-06-26 10:23:44 +02:00
commit 4229d44904
1 changed files with 4 additions and 1 deletions

View File

@ -180,7 +180,10 @@ class pronsole(cmd.Cmd):
def load_rc(self,rc_filename=".pronsolerc"):
self.processing_rc=True
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:
if not rc_cmd.lstrip().startswith("#"):
self.onecmd(rc_cmd)