Description
It can be useful to test the presence of executable by calling pyside2-rcc, unfortunately pyside2-rcc exits with code 1:
pyside-setup/sources/pyside2-tools/pyrcc/main.cpp:
int showHelp(const char *argv0, const QString &error) { fprintf(stderr, "PySide2 resource compiler\n"); if (!error.isEmpty()) fprintf(stderr, "%s: %s\n", argv0, error.toLatin1().constData()); fprintf(stderr, "Usage: %s [options] <inputs>\n\n" "Options:\n" " -o file Write output to file rather than stdout\n" " -py2 Generate code for any Python v2.x version\n" " -py3 Generate code for any Python v3.x version (default)\n" " -name name Create an external initialization function with name\n" " -threshold level Threshold to consider compressing files\n" " -compress level Compress input files by level\n" " -root path Prefix resource access path with root path\n" " -no-compress Disable all compression\n" " -version Display version\n" " -help Display this information\n", argv0); return 1; }
this is inconsistent with the behavior of pyside2-lupdate, pyside2-uic which both return 0
also happens with -version:
} else if(opt == "version") { fprintf(stderr, "Resource Compiler for Qt version %s\n", QT_VERSION_STR); return 1;