svn: r21538

This commit is contained in:
John Ralls 2013-03-03 21:50:22 +00:00
parent ee3469233a
commit 46d7c95f86

View File

@ -243,6 +243,11 @@ def write_const_py(command):
data_dir = os.path.join(share_dir, 'gramps') data_dir = os.path.join(share_dir, 'gramps')
image_dir = os.path.join(share_dir, 'gramps', 'icons', 'hicolor') image_dir = os.path.join(share_dir, 'gramps', 'icons', 'hicolor')
doc_dir = os.path.join(share_dir, 'doc', 'gramps') 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: else:
#in build #in build
if 'install' in command.distribution.command_obj: if 'install' in command.distribution.command_obj:
@ -253,6 +258,10 @@ def write_const_py(command):
data_dir = os.path.join(base_dir, 'data') data_dir = os.path.join(base_dir, 'data')
image_dir = os.path.join(base_dir, 'images') image_dir = os.path.join(base_dir, 'images')
doc_dir = base_dir 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), subst_vars = (('@VERSIONSTRING@', VERSION),
('@LOCALE_DIR@', locale_dir), ('@LOCALE_DIR@', locale_dir),