equal
deleted
inserted
replaced
20 mod=__import__(classpath.rsplit('.',1)[0]) |
20 mod=__import__(classpath.rsplit('.',1)[0]) |
21 return reduce(getattr, classpath.split('.')[1:], mod) |
21 return reduce(getattr, classpath.split('.')[1:], mod) |
22 return fac |
22 return fac |
23 else: |
23 else: |
24 return classpath |
24 return classpath |
|
25 |
|
26 def InstallLocalRessources(CWD): |
|
27 from BitmapLibrary import AddBitmapFolder |
|
28 from TranslationCatalogs import AddCatalog |
|
29 import wx |
|
30 |
|
31 # Beremiz bitmaps |
|
32 AddBitmapFolder(os.path.join(CWD, "images")) |
|
33 |
|
34 # Internationalization |
|
35 AddCatalog(os.path.join(CWD, "locale")) |
|
36 import gettext |
|
37 import __builtin__ |
|
38 |
|
39 __builtin__.__dict__['_'] = wx.GetTranslation |
|
40 |