scripts/install-i18n.py

changeset 8235
78e6d29eb773
parent 7960
e8fc383322f7
child 8314
e3642a6a1e71
equal deleted inserted replaced
8234:fcb6b4b96274 8235:78e6d29eb773
67 """ 67 """
68 Install the translation files into the right place. 68 Install the translation files into the right place.
69 """ 69 """
70 global privateInstall, configDir 70 global privateInstall, configDir
71 71
72 if privateInstall: 72 targetDir = (configDir if privateInstall
73 targetDir = configDir 73 else getConfig('ericTranslationsDir'))
74 else:
75 targetDir = getConfig('ericTranslationsDir')
76 74
77 try: 75 try:
78 for fn in glob.glob(os.path.join('eric', 'eric6', 'i18n', '*.qm')): 76 for fn in glob.glob(os.path.join('eric', 'eric6', 'i18n', '*.qm')):
79 shutil.copy2(fn, targetDir) 77 shutil.copy2(fn, targetDir)
80 os.chmod(os.path.join(targetDir, os.path.basename(fn)), 0o644) 78 os.chmod(os.path.join(targetDir, os.path.basename(fn)), 0o644)

eric ide

mercurial