equal
deleted
inserted
replaced
142 __builtin__.__dict__['_'] = wx.GetTranslation#unicode_translation |
142 __builtin__.__dict__['_'] = wx.GetTranslation#unicode_translation |
143 |
143 |
144 base_folder = os.path.split(sys.path[0])[0] |
144 base_folder = os.path.split(sys.path[0])[0] |
145 sys.path.append(base_folder) |
145 sys.path.append(base_folder) |
146 sys.path.append(os.path.join(base_folder, "plcopeneditor")) |
146 sys.path.append(os.path.join(base_folder, "plcopeneditor")) |
|
147 |
|
148 if __name__ == '__main__': |
|
149 # Load extensions |
|
150 for extfilename in extensions: |
|
151 sys.path.append(os.path.split(os.path.realpath(extfilename))[0]) |
|
152 execfile(a, locals()) |
147 |
153 |
148 import wx.lib.buttons, wx.lib.statbmp |
154 import wx.lib.buttons, wx.lib.statbmp |
149 from util.TextCtrlAutoComplete import TextCtrlAutoComplete |
155 from util.TextCtrlAutoComplete import TextCtrlAutoComplete |
150 import cPickle |
156 import cPickle |
151 from util.BrowseValuesLibraryDialog import BrowseValuesLibraryDialog |
157 from util.BrowseValuesLibraryDialog import BrowseValuesLibraryDialog |
1919 |
1925 |
1920 if __name__ == '__main__': |
1926 if __name__ == '__main__': |
1921 # Install a exception handle for bug reports |
1927 # Install a exception handle for bug reports |
1922 AddExceptHook(os.getcwd(),updateinfo_url) |
1928 AddExceptHook(os.getcwd(),updateinfo_url) |
1923 |
1929 |
1924 # Load extensions |
|
1925 for extfilename in extensions: |
|
1926 sys.path.append(os.path.split(os.path.realpath(extfilename))[0]) |
|
1927 execfile(a, locals()) |
|
1928 |
|
1929 frame = Beremiz(None, projectOpen, buildpath) |
1930 frame = Beremiz(None, projectOpen, buildpath) |
1930 splash.Close() |
1931 splash.Close() |
1931 frame.Show() |
1932 frame.Show() |
1932 app.MainLoop() |
1933 app.MainLoop() |