[PyQt] QCoreApplication.applicationFilePath

Arve Knudsen arve.knudsen at gmail.com
Tue Jul 29 10:37:05 BST 2008


QCoreApplication.applicationFilePath gets a bit confused under Python,
at least on Linux. Although the documentation says that this should be
deduced from argv[0], and QCoreApplication.arguments()[0] is the path
to the script, what is returned is the path to the Python interpreter.
This happens in an existing application that is predominantly C++, so
we would like standard Qt logic to keep working. How do I best solve
this problem?

Thanks,
Arve


More information about the PyQt mailing list