Merge branch 'master' of github.com:kliment/Printrun
commit
4229d44904
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue