Copy also tryton locale on win32 as directory is clean before

issue2921
review597006
(transplanted from e5cdaf0a7ba1fd96593138d905bebe50de6c5663)
This commit is contained in:
Cédric Krier committed 2012-12-13 19:06:01 +01:00
1 parent ce82c867b8
commit b2fde9d4d3
1 file changed
+10
+10
View File
@@ -237,6 +237,11 @@ if os.name == 'nt':
shutil.rmtree(os.path.join(dist_dir, 'share', 'locale', lang))
shutil.copytree(os.path.join(gtk_dir, 'share', 'locale', lang),
os.path.join(dist_dir, 'share', 'locale', lang))
if os.path.isdir(os.path.join(os.path.dirname(__file__),
'share', 'locale', lang)):
shutil.copytree(os.path.join(os.path.dirname(__file__),
'share', 'locale', lang),
os.path.join(dist_dir, 'share', 'locale', lang))
if os.path.isdir(os.path.join(dist_dir, 'share', 'themes', 'MS-Windows')):
shutil.rmtree(os.path.join(dist_dir, 'share', 'themes', 'MS-Windows'))
@@ -334,6 +339,11 @@ elif sys.platform == 'darwin':
shutil.rmtree(os.path.join(resources_dir, 'share', 'locale', lang))
shutil.copytree(os.path.join(gtk_dir, 'share', 'locale', lang),
os.path.join(resources_dir, 'share', 'locale', lang))
if os.path.isdir(os.path.join(os.path.dirname(__file__),
'share', 'locale', lang)):
shutil.copytree(os.path.join(os.path.dirname(__file__),
'share', 'locale', lang),
os.path.join(resources_dir, 'share', 'locale', lang))
# fix pathes within shared libraries
for library in chain(