win32 fix
svn: r21529
This commit is contained in:
parent
4ca0c9f8c9
commit
8ea29ede81
@ -45,6 +45,9 @@ else:
|
|||||||
try:
|
try:
|
||||||
codeset = glocale.get_translation().info()["charset"]
|
codeset = glocale.get_translation().info()["charset"]
|
||||||
except KeyError:
|
except KeyError:
|
||||||
|
if win():
|
||||||
|
codeset = locale.getlocale()[1]
|
||||||
|
else:
|
||||||
codeset = "UTF-8"
|
codeset = "UTF-8"
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
5
setup.py
5
setup.py
@ -243,6 +243,9 @@ 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':
|
||||||
|
locale_dir= locale_dir.replace('\\', '\\\\')
|
||||||
|
|
||||||
else:
|
else:
|
||||||
#in build
|
#in build
|
||||||
if 'install' in command.distribution.command_obj:
|
if 'install' in command.distribution.command_obj:
|
||||||
@ -253,6 +256,8 @@ 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= locale_dir.replace('\\', '\\\\')
|
||||||
|
|
||||||
subst_vars = (('@VERSIONSTRING@', VERSION),
|
subst_vars = (('@VERSIONSTRING@', VERSION),
|
||||||
('@LOCALE_DIR@', locale_dir),
|
('@LOCALE_DIR@', locale_dir),
|
||||||
|
Loading…
Reference in New Issue
Block a user