comparison zebra.py @ 7:0687a6666873

Case insensitive platform
author Ben Croston <ben@croston.org>
date Sat, 13 Aug 2011 08:37:53 +0100
parents ad9d9bf61243
children 19fd067db7ca
comparison
equal deleted inserted replaced
6:d3c5d7c62f57 7:0687a6666873
26 def _output_win(self, commands): 26 def _output_win(self, commands):
27 raise Exception('Not yet implemented') 27 raise Exception('Not yet implemented')
28 28
29 def output(self, commands): 29 def output(self, commands):
30 assert self.queue is not None 30 assert self.queue is not None
31 if sys.platform.startswith('win'): 31 if sys.platform.lower().startswith('win'):
32 self._output_win(commands) 32 self._output_win(commands)
33 else: 33 else:
34 self._output_unix(commmands) 34 self._output_unix(commmands)
35 35
36 def _getqueues_unix(self): 36 def _getqueues_unix(self):
43 43
44 def _getqueues_win(self): 44 def _getqueues_win(self):
45 raise Exception('Not yet implemented') 45 raise Exception('Not yet implemented')
46 46
47 def getqueues(self): 47 def getqueues(self):
48 if sys.platform.startswith('win'): 48 if sys.platform.lower().startswith('win'):
49 return self._getqueues_win() 49 return self._getqueues_win()
50 else: 50 else:
51 return self._getqueues_unix() 51 return self._getqueues_unix()
52 52
53 def setqueue(self, queue): 53 def setqueue(self, queue):