Merge pull request #3 from k-eex/master

bugfix in .pronsolerc reading
master
kliment 2011-06-01 10:56:20 -07:00
commit f00a00814d
1 changed files with 1 additions and 1 deletions

View File

@ -133,7 +133,7 @@ class pronsole(cmd.Cmd):
with open(os.path.join(os.path.expanduser("~"),".pronsolerc")) as rc:
for rc_cmd in rc:
if rc_cmd.lstrip()[0] != "#":
self.onecmd(rc_cmd.rstrip(r"\r\n"))
self.onecmd(rc_cmd)
except IOError:
pass
print "Welcome to the printer console! Type \"help\" for a list of available commands."