From 16da7ceda779383dc0b3dbd98412a77102cf05c6 Mon Sep 17 00:00:00 2001 From: Eratosthenes Date: Fri, 17 Dec 2010 22:43:41 -0500 Subject: [PATCH] Update to work with OSXTables changes. --- pyfpdb/Tables_Demo.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) mode change 100755 => 100644 pyfpdb/Tables_Demo.py diff --git a/pyfpdb/Tables_Demo.py b/pyfpdb/Tables_Demo.py old mode 100755 new mode 100644 index 86e5f1f3..fb573a6f --- a/pyfpdb/Tables_Demo.py +++ b/pyfpdb/Tables_Demo.py @@ -22,12 +22,8 @@ Main program module to test/demo the Tables subclasses. ######################################################################## -import L10n -_ = L10n.get_translation() - # Standard Library modules import sys -import os # pyGTK modules import pygtk @@ -36,11 +32,15 @@ import gobject # fpdb/free poker tools modules import Configuration +import L10n +_ = L10n.get_translation() # get the correct module for the current os -if os.name == 'posix': +if sys.platform == 'linux2': import XTables as Tables -elif os.name == 'nt': +elif sys.platform == 'darwin': + import OSXTables as Tables +else: # This is bad--figure out the values for the various windows flavors import WinTables as Tables config = Configuration.Config()