Beremiz.py
changeset 1451 94e620cbd9de
parent 1442 ad9a7853dea2
child 1483 004f9c52f7d8
equal deleted inserted replaced
1450:44bf0ba866e9 1451:94e620cbd9de
    23 #Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
    23 #Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
    24 
    24 
    25 
    25 
    26 updateinfo_url = None
    26 updateinfo_url = None
    27 
    27 
    28 import os, sys, getopt, wx
    28 import os, sys, getopt
    29 import __builtin__
    29 import __builtin__
    30 from wx.lib.agw.advancedsplash import AdvancedSplash
       
    31 import tempfile
    30 import tempfile
    32 import shutil
    31 import shutil
    33 import random
    32 import random
    34 import time
    33 import time
    35 from types import ListType
    34 from types import ListType
    36 
    35 
    37 CWD = os.path.split(os.path.realpath(__file__))[0]
    36 beremiz_dir = os.path.dirname(os.path.realpath(__file__))
    38 
    37 
       
    38 import wxversion
       
    39 wxversion.select('2.8')
       
    40 import wx
       
    41 from wx.lib.agw.advancedsplash import AdvancedSplash
    39 
    42 
    40 def Bpath(*args):
    43 def Bpath(*args):
    41     return os.path.join(CWD,*args)
    44     return os.path.join(beremiz_dir,*args)
    42 
    45 
    43 if __name__ == '__main__':
    46 if __name__ == '__main__':
    44     def usage():
    47     def usage():
    45         print "\nUsage of Beremiz.py :"
    48         print "\nUsage of Beremiz.py :"
    46         print "\n   %s [Projectpath] [Buildpath]\n"%sys.argv[0]
    49         print "\n   %s [Projectpath] [Buildpath]\n"%sys.argv[0]
   110         updateinfoThread.join(2)
   113         updateinfoThread.join(2)
   111         splash.SetText(text=updateinfo)
   114         splash.SetText(text=updateinfo)
   112         wx.Yield()
   115         wx.Yield()
   113 
   116 
   114     from util.misc import InstallLocalRessources
   117     from util.misc import InstallLocalRessources
   115     InstallLocalRessources(CWD)
   118     InstallLocalRessources(beremiz_dir)
   116 
   119 
   117     # Load extensions
   120     # Load extensions
   118     for extfilename in extensions:
   121     for extfilename in extensions:
   119         from util.TranslationCatalogs import AddCatalog
   122         from util.TranslationCatalogs import AddCatalog
   120         from util.BitmapLibrary import AddBitmapFolder
   123         from util.BitmapLibrary import AddBitmapFolder