Fri, 07 Jun 2024 10:05:06 +0200
Changed code structure and install script to include the Ui_*.py files in the code repository and do not compile *.ui files at installation time anymore. This is to cope with a backward incompatible change of Qt 6.7.0.
# -*- coding: utf-8 -*- # Copyright (c) 2014 - 2024 Detlev Offenbach <detlev@die-offenbachs.de> # """ Module implementing some common utility functions for the Git package. """ import os from PyQt6.QtCore import QProcessEnvironment from eric7.SystemUtilities import OSUtilities def getConfigPath(): """ Public function to get the filename of the config file. @return filename of the config file @rtype str """ if OSUtilities.isWindowsPlatform(): userprofile = os.environ["USERPROFILE"] return os.path.join(userprofile, ".gitconfig") else: homedir = OSUtilities.getHomeDir() return os.path.join(homedir, ".gitconfig") def prepareProcess(proc, language=""): """ Public function to prepare the given process. @param proc reference to the process to be prepared @type QProcess @param language language to be set @type str """ env = QProcessEnvironment.systemEnvironment() # set the language for the process if language: env.insert("LANGUAGE", language) proc.setProcessEnvironment(env)