File: pkgkde-getqmldepends

package info (click to toggle)
pkg-kde-tools 0.20.0
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 916 kB
  • sloc: perl: 4,238; python: 686; ansic: 628; sh: 441; makefile: 5
file content (32 lines) | stat: -rwxr-xr-x 831 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/usr/bin/env python3
# SPDX-FileCopyrightText: 2023 Sandro Knauß <hefee@debian.org>
# SPDX-License-Identifier: LGPL-2.0-or-later

"""
Gives a list of Debian qml packages that are needed as dependency.
This script should become a dh_helper script.

The needed qml packages need to be installed on the system, otherwise the
dependency is not detected and you will see:

Missing QML module XXX

The arguments are the arguments for qmlimportscanner.

Sample execution:

pkgkde-getqmldepends --qt 5 -- -qrcFiles PATHTO/itinerary-23.04.2/src/app/qml.qrc
"""

import sys
import pathlib

sys.path.insert(0,'/usr/share/pkg-kde-tools')
parent = str(pathlib.Path(__file__).parent.absolute())
if parent not in ("/usr/bin", "/bin"):
    sys.path.insert(0,parent)

from pythonlib import qmldeps

if __name__ == '__main__':
    qmldeps.main()