home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2012 January / maximum-cd-2012-01.iso / DiscContents / digsby_setup.exe / lib / langtools.pyo (.txt) < prev    next >
Encoding:
Python Compiled Bytecode  |  2011-10-05  |  1.2 KB  |  39 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyo (Python 2.6)
  3.  
  4. from buildutil import dpy, cd, tardep
  5. import os.path as os
  6. DIGSBY_ROOT = os.path.normpath(os.path.join(os.path.dirname(os.path.abspath(__file__)), '..'))
  7. i18bin = tardep('http://mini/deps/i18n/win/', 'i18nbin', '.zip', 1037011)
  8.  
  9. def download_i18n_tools():
  10.     cd(DIGSBY_ROOT, 'build', 'msw').__enter__()
  11.     
  12.     try:
  13.         d = i18bin.get()
  14.         return os.path.abspath(d)
  15.     finally:
  16.         pass
  17.  
  18.  
  19.  
  20. def make_po_files():
  21.     toolsdir = download_i18n_tools()
  22.     path = os.pathsep.join((toolsdir, os.environ.get('PATH', '')))
  23.     cd(DIGSBY_ROOT).__enter__()
  24.     
  25.     try:
  26.         dpy([
  27.             'mki18n.py',
  28.             '-m',
  29.             '-v',
  30.             '--domain=Digsby',
  31.             DIGSBY_ROOT], addenv = dict(PATH = path))
  32.     finally:
  33.         pass
  34.  
  35.  
  36. if __name__ == '__main__':
  37.     make_po_files()
  38.  
  39.