changeset 7:0687a6666873

Case insensitive platform
author Ben Croston <ben@croston.org>
date Sat, 13 Aug 2011 08:37:53 +0100
parents d3c5d7c62f57
children 19fd067db7ca
files zebra.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/zebra.py	Fri Aug 12 22:02:09 2011 +0100
+++ b/zebra.py	Sat Aug 13 08:37:53 2011 +0100
@@ -28,7 +28,7 @@
     
     def output(self, commands):
         assert self.queue is not None
-        if sys.platform.startswith('win'):
+        if sys.platform.lower().startswith('win'):
             self._output_win(commands)
         else:
             self._output_unix(commmands)
@@ -45,7 +45,7 @@
         raise Exception('Not yet implemented')
 
     def getqueues(self):
-        if sys.platform.startswith('win'):
+        if sys.platform.lower().startswith('win'):
             return self._getqueues_win()
         else:
             return self._getqueues_unix()