Details

    • Type: Bug
    • Status: Closed
    • Priority: P4: Low
    • Resolution: Fixed
    • Affects Version/s: 1.2.x, 5.6, 5.9, dev
    • Fix Version/s: 5.6, 5.9, dev
    • Component/s: PySide
    • Labels:

      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;
      

       

       

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            • Assignee:
              jschueller Julien Schueller
              Reporter:
              jschueller Julien Schueller
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Gerrit Reviews

                There is 1 open Gerrit change