I wrote a password generator and built a GUI for it using the PyQt5 designer. The script calls the .ui in its initiator and both are in the same folder.
def __init__(self, parent=None):
super().__init__(parent)
self.ui = uic.loadUi('Generator.ui', self)
However, after converting both to an .exe file via PyInstaller, after extracting the .exe file from its dist folder and executing it, a console pops up and closes immediately, without showing the GUI.
How can I fix this without manually adding the .ui code to the Generator.py script??
Thank you