Uploaded image for project: 'Qt for Python'
  1. Qt for Python
  2. PYSIDE-2293

pyside6-deploy breaks directory structure of qml files

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • 6.5.0, 6.6.0
    • 6.4.3
    • PySide
    • None
    • 77a3d93c8 (dev), 5b4f837bc (6.5)

    Description

      pyside6-deploy automatically adds qml files under project. The list of qml files are saved to qml_files option under  [qt] in pysidedeploy.spec file, and passed to Nuitka as following. 

       

      #PySide6/scripts/deploy/nuitka_helper.py:
      
      qml_args = []
      if qml_files:
           qml_args.append("--include-qt-plugins=all")
           qml_args.extend([
                 f"--include-data-files={qml_file}=./{qml_file.name}"
                 for qml_file in qml_files
            ])

       

      However, qml_file variable here is absolute path, and qml_file.name has no information about the directory structure.

      This comes problem to me, because the qml files are structured in my project. Unless all qml files are stored project root, it seems strange to lose all directory structures.

      Attachments

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

        Activity

          People

            crmaurei Cristian Maureira-Fredes
            almightychang Joochul Chang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes