diff --git a/setup.py b/setup.py index 589880ebf1..81319e72e2 100644 --- a/setup.py +++ b/setup.py @@ -250,6 +250,11 @@ if os.name == 'nt': if os.path.isdir(os.path.join(gtk_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')): @@ -365,6 +370,11 @@ elif sys.platform == 'darwin': if os.path.isdir(os.path.join(gtk_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(