Merge /home/reb402/workspace/free_poker_tools
This commit is contained in:
commit
9c8858fe0f
12
pyfpdb/Tables_Demo.py
Executable file → Normal file
12
pyfpdb/Tables_Demo.py
Executable file → Normal file
|
@ -22,12 +22,8 @@ Main program module to test/demo the Tables subclasses.
|
||||||
|
|
||||||
########################################################################
|
########################################################################
|
||||||
|
|
||||||
import L10n
|
|
||||||
_ = L10n.get_translation()
|
|
||||||
|
|
||||||
# Standard Library modules
|
# Standard Library modules
|
||||||
import sys
|
import sys
|
||||||
import os
|
|
||||||
|
|
||||||
# pyGTK modules
|
# pyGTK modules
|
||||||
import pygtk
|
import pygtk
|
||||||
|
@ -36,11 +32,15 @@ import gobject
|
||||||
|
|
||||||
# fpdb/free poker tools modules
|
# fpdb/free poker tools modules
|
||||||
import Configuration
|
import Configuration
|
||||||
|
import L10n
|
||||||
|
_ = L10n.get_translation()
|
||||||
|
|
||||||
# get the correct module for the current os
|
# get the correct module for the current os
|
||||||
if os.name == 'posix':
|
if sys.platform == 'linux2':
|
||||||
import XTables as Tables
|
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
|
import WinTables as Tables
|
||||||
|
|
||||||
config = Configuration.Config()
|
config = Configuration.Config()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user