[r21538]Win32:Apply \\ escape to all const paths

svn: r21541
This commit is contained in:
John Ralls 2013-03-03 23:59:32 +00:00
parent bcef9fc868
commit debf8b601a

View File

@ -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,7 +258,9 @@ 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),