0

I have created a GUI with Pyqt5 and now I want the translation file (.qm) to be included in the exe. The translation file is currently loaded via the relative path:

self.trans.load("./GUI/Language/hu.qm")

However, it should also be possible to include the translation file via the spec setting of pyinstaller? And how do I then have to specify the path in the code?

a = Analysis(
['main.py'],
pathex=[],
binaries=[('.\GUI\Language\hu.qm', '.\GUI\Language\hu.qm')],
datas=[],
hiddenimports=[],
hookspath=[],
hooksconfig={},
runtime_hooks=[],
excludes=[],
win_no_prefer_redirects=False,
win_private_assemblies=False,
cipher=block_cipher,
noarchive=False)
Robin
  • 21
  • 3
  • I've had a similar issue in the past; maybe it will help you: https://stackoverflow.com/questions/61718298/compiling-gettext-locales-with-pyinstaller-in-python-3-x – TheTechRobo the Nerd Mar 18 '23 at 22:44

0 Answers0