Commit f00a0081 authored by kliment's avatar kliment

Merge pull request #3 from k-eex/master

bugfix in .pronsolerc reading
parents cde671a6 4c33a905
......@@ -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."
......
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