Details
Description
around line 40:-
in venv/lib/python3.11/site-packages/PySide6/scripts/project/project_data.py:-
if file.suffix == ".qml": self._qml_files.append(file) elif file.suffix == ".py": if file.name == "main.py": self.main_file = file self._python_files.append(file)
This prevents QT Creator from setting main.pyw as the main project file to execute at the build stage. Qt Creator, under some circumstances (disable the pyside6 project tool, have a main.py file entry in the .pyproject file), successfully launch the desired main.pyw file. If there is no main.py entry in the .pyproject file - The build task will fail, and nothing will launch.
The QT Creator Is built from source with a fix suggested by QT to permit the execution of a main.pyw:-
[It looks like we have overseen the text/x-python-gui mime type when looking for executable python scripts in a project: fix is up at https://codereview.qt-project.org/c/qt-creator/qt-creator/+/504708]
I strongly suspect that a version of QT Creator with this fix has NOT been released.
Attachments
For Gerrit Dashboard: PYSIDE-2471 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
507292,3 | pyside6-project: Recognize .pyw files as Python | dev | pyside/pyside-setup | Status: MERGED | +2 | 0 |
507351,2 | pyside6-project: Recognize .pyw files as Python | 6.6 | pyside/pyside-setup | Status: MERGED | +2 | 0 |
507518,2 | pyside6-project: Recognize .pyw files as Python | 6.5 | pyside/pyside-setup | Status: MERGED | +2 | 0 |