diff --git a/setup.py b/setup.py index 3d1512ab5..7a884a742 100644 --- a/setup.py +++ b/setup.py @@ -244,8 +244,9 @@ def write_const_py(command): image_dir = os.path.join(share_dir, 'gramps', 'icons', 'hicolor') doc_dir = os.path.join(share_dir, 'doc', 'gramps') if sys.platform == 'win32': - locale_dir= locale_dir.replace('\\', '\\\\') - + (share_dir, locale_dir, data_dir, image_dir, doc_dir) = \ + [path.replace('\\', '\\\\') for path in + (share_dir, locale_dir, data_dir, image_dir, doc_dir)] else: #in build if 'install' in command.distribution.command_obj: @@ -257,8 +258,10 @@ def write_const_py(command): image_dir = os.path.join(base_dir, 'images') doc_dir = base_dir if sys.platform == 'win32': - locale_dir= locale_dir.replace('\\', '\\\\') - + (locale_dir, data_dir, image_dir, doc_dir) = \ + [path.replace('\\', '\\\\') for path in + (locale_dir, data_dir, image_dir, doc_dir)] + subst_vars = (('@VERSIONSTRING@', VERSION), ('@LOCALE_DIR@', locale_dir), ('@DATA_DIR@', data_dir),