From 46d7c95f862de883dab36ecccb7d6d9e69cd5720 Mon Sep 17 00:00:00 2001 From: John Ralls Date: Sun, 3 Mar 2013 21:50:22 +0000 Subject: [PATCH] svn: r21538 --- setup.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/setup.py b/setup.py index 9567e32f5..037f9bd1b 100644 --- a/setup.py +++ b/setup.py @@ -243,6 +243,11 @@ def write_const_py(command): data_dir = os.path.join(share_dir, 'gramps') image_dir = os.path.join(share_dir, 'gramps', 'icons', 'hicolor') doc_dir = os.path.join(share_dir, 'doc', 'gramps') + if sys.platform == 'win32': + (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: @@ -253,6 +258,10 @@ def write_const_py(command): data_dir = os.path.join(base_dir, 'data') image_dir = os.path.join(base_dir, 'images') doc_dir = base_dir + if sys.platform == 'win32': + (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),