Windows cleanups - closes #15

This commit is contained in:
kramo
2023-04-05 19:17:13 +02:00
parent 329fe098c5
commit 7647857617
3 changed files with 9 additions and 2 deletions

View File

@@ -27,6 +27,11 @@ import gettext
VERSION = "@VERSION@"
if os.name == "nt":
from ctypes import windll
os.environ["LANGUAGE"] = locale.windows_locale[
windll.kernel32.GetUserDefaultUILanguage()
]
pkgdatadir = os.path.join(os.path.dirname(__file__), "..", "share", "cartridges")
localedir = os.path.join(os.path.dirname(__file__), "..", "share", "locale")
else: