15 |
|
|
16 |
import sys |
import sys |
17 |
|
|
|
# import wxPython.wx here to get the side effects of the wxPython |
|
|
# import, especially setting the locale to the user's defaults throught |
|
|
# GTK. We then set the locale again to the user's defaults, but this |
|
|
# time we're going through the standard python locale module, so all the |
|
|
# magic necessary to make python work properly is done. Without this, |
|
|
# something harmless like float("1.2") may fail when run under a non-C |
|
|
# locale like de_DE |
|
|
import wxPython.wx |
|
|
try: |
|
|
import locale |
|
|
locale.setlocale(locale.LC_ALL, "") |
|
|
except ImportError: |
|
|
# the locale module may not be available on some systems |
|
|
pass |
|
|
|
|
18 |
from application import ThubanApplication |
from application import ThubanApplication |
19 |
|
|
20 |
def main(): |
def main(): |