[PyQt] How does QCoreApplication.applicationDirPath() determine path to python binary?
Phil Thompson
phil at riverbankcomputing.com
Mon Mar 27 12:34:07 BST 2017
On 24 Mar 2017, at 2:44 pm, Nick Todd <ntodd at eyeseetec.de> wrote:
>
> I'm trying to bundle PyQt5 into a Python environment that can be run independent of any system installation. I want to use qt.conf to point PyQt to the location of the required Qt dependencies, but it's being ignored. The docs say that Qt expects to find qt.conf in QCoreApplication.applicationDirPath(). When I print this value I see it points to the location of the original Python installation where PyQt was installed to.
>
> How is the value of QCoreApplication.applicationDirPath() determined, and how can I make it point to the new location of my Python binary?
Did you build PyQt from source?
Make sure you create a QCoreApplication instance before verifying the qt.conf supplied values.
Phil
More information about the PyQt
mailing list