1 |
#!/usr/bin/env python |
2 |
|
3 |
# structure and some code ripped from Pears: http://project5.freezope.org/pears/ |
4 |
|
5 |
NETFRAGGLEVERSION = "0.01" |
6 |
|
7 |
# The "build" sets DEBUGMODE to False |
8 |
# set to True in order to get extra debugging messages |
9 |
DEBUGMODE = False |
10 |
|
11 |
from wxPython import wx |
12 |
WXPYTHONVERSION = wx.__version__ |
13 |
|
14 |
if WXPYTHONVERSION.endswith('u'): |
15 |
DISPCODE = None # no encoding for Unicode-capable wxPython? |
16 |
else: |
17 |
DISPCODE = 'iso8859-1' # encoding to use if wxPython is not Unicode? |
18 |
|
19 |
# store location from where activated |
20 |
import sys, os |
21 |
APPLOCATION = os.path.split(sys.argv[0])[0] or os.getcwd() # *MUST* be the directory where everything, including About data and the likes are located |
22 |
PYTHONVERSION = sys.version.split()[0] |
23 |
import time |
24 |
STARTTIME = time.time() |
25 |
|
26 |
import xml |
27 |
PYXMLVERSION = xml.__version__ |
28 |
|
29 |
BROWSERCOMMAND = "Browser startup command" |
30 |
BROWSERDEFAULT = "<<OPEN_WITH_DEFAULT %URL>>" |
31 |
|
32 |
OSNAME = os.name |