install-i18n.py

changeset 2160
1874d4410904
parent 2124
909d55803dd6
child 2302
f29e9405c851
equal deleted inserted replaced
2158:31a20aed2406 2160:1874d4410904
79 targetDir = getConfig('ericTranslationsDir') 79 targetDir = getConfig('ericTranslationsDir')
80 80
81 try: 81 try:
82 for fn in glob.glob(os.path.join('eric', 'i18n', '*.qm')): 82 for fn in glob.glob(os.path.join('eric', 'i18n', '*.qm')):
83 shutil.copy2(fn, targetDir) 83 shutil.copy2(fn, targetDir)
84 os.chmod(os.path.join(targetDir, os.path.basename(fn)), 0o644)
84 except IOError as msg: 85 except IOError as msg:
85 sys.stderr.write( 86 sys.stderr.write(
86 'IOError: {0}\nTry install-i18n as root.\n'.format(msg)) 87 'IOError: {0}\nTry install-i18n as root.\n'.format(msg))
87 except OSError as msg: 88 except OSError as msg:
88 sys.stderr.write( 89 sys.stderr.write(

eric ide

mercurial