1 import os, sys |
1 import os, sys |
|
2 |
2 base_folder = os.path.split(sys.path[0])[0] |
3 base_folder = os.path.split(sys.path[0])[0] |
3 CanFestivalPath = os.path.join(base_folder, "CanFestival-3") |
4 CanFestivalPath = os.path.join(base_folder, "CanFestival-3") |
4 sys.path.append(os.path.join(CanFestivalPath, "objdictgen")) |
5 sys.path.append(os.path.join(CanFestivalPath, "objdictgen")) |
|
6 |
|
7 import wx |
5 |
8 |
6 from nodelist import NodeList |
9 from nodelist import NodeList |
7 from nodemanager import NodeManager |
10 from nodemanager import NodeManager |
8 import config_utils, gen_cfile, eds_utils |
11 import config_utils, gen_cfile, eds_utils |
9 from networkedit import networkedit |
12 from networkedit import networkedit |
10 from objdictedit import objdictedit |
13 from objdictedit import objdictedit |
11 import canfestival_config as local_canfestival_config |
14 import canfestival_config as local_canfestival_config |
12 from ConfigTreeNode import ConfigTreeNode |
15 from ConfigTreeNode import ConfigTreeNode |
13 from commondialogs import CreateNodeDialog |
16 from commondialogs import CreateNodeDialog |
14 import wx |
|
15 |
17 |
16 from SlaveEditor import SlaveEditor, MasterViewer |
18 from SlaveEditor import SlaveEditor, MasterViewer |
17 from NetworkEditor import NetworkEditor |
19 from NetworkEditor import NetworkEditor |
18 |
20 |
19 from gnosis.xml.pickle import * |
21 from gnosis.xml.pickle import * |
20 from gnosis.xml.pickle.util import setParanoia |
22 from gnosis.xml.pickle.util import setParanoia |
21 setParanoia(0) |
23 setParanoia(0) |
|
24 |
|
25 from util.TranslationCatalogs import AddCatalog |
|
26 AddCatalog(os.path.join(CanFestivalPath, "objdictgen", "locale")) |
22 |
27 |
23 if wx.Platform == '__WXMSW__': |
28 if wx.Platform == '__WXMSW__': |
24 DEFAULT_SETTINGS = { |
29 DEFAULT_SETTINGS = { |
25 "CAN_Driver": "can_tcp_win32", |
30 "CAN_Driver": "can_tcp_win32", |
26 "CAN_Device": "127.0.0.1", |
31 "CAN_Device": "127.0.0.1", |