diff zebra.py @ 27:7c132e01c281 0.0.5

Add -oraw to lpr command
author Ben Croston <ben@croston.org>
date Mon, 27 Apr 2015 11:38:07 +0100
parents 20f6df6d3f42
children 63d1260cc64e
line wrap: on
line diff
--- a/zebra.py	Sat Nov 16 17:17:15 2013 +0000
+++ b/zebra.py	Mon Apr 27 11:38:07 2015 +0100
@@ -1,6 +1,6 @@
 #!/usr/bin/env python
 
-# Copyright (c) 2011-2013 Ben Croston
+# Copyright (c) 2011-2015 Ben Croston
 #
 # Permission is hereby granted, free of charge, to any person obtaining a copy of
 # this software and associated documentation files (the "Software"), to deal in
@@ -41,7 +41,7 @@
         if self.queue == 'zebra_python_unittest':
             p = subprocess.Popen(['cat','-'], stdin=subprocess.PIPE)
         else:
-            p = subprocess.Popen(['lpr','-P%s'%self.queue], stdin=subprocess.PIPE)
+            p = subprocess.Popen(['lpr','-P{}'.format(self.queue),'-oraw'], stdin=subprocess.PIPE)
         p.communicate(commands)
         p.stdin.close()