| 1 |
|
| 2 |
> |
| 3 |
|
| 4 |
|
| 5 |
""" |
| 6 |
Gives a list of Debian qml packages that are needed as dependency. |
| 7 |
This script should become a dh_helper script. |
| 8 |
|
| 9 |
The needed qml packages need to be installed on the system, otherwise the |
| 10 |
dependency is not detected and you will see: |
| 11 |
|
| 12 |
Missing QML module XXX |
| 13 |
|
| 14 |
The arguments are the arguments for qmlimportscanner. |
| 15 |
|
| 16 |
Sample execution: |
| 17 |
|
| 18 |
pkgkde-getqmldepends --qt 5 -- -qrcFiles PATHTO/itinerary-23.04.2/src/app/qml.qrc |
| 19 |
""" |
| 20 |
|
| 21 |
import sys |
| 22 |
import pathlib |
| 23 |
|
| 24 |
sys.path.insert(0,'/usr/share/pkg-kde-tools') |
| 25 |
parent = str(pathlib.Path(__file__).parent.absolute()) |
| 26 |
if parent not in ("/usr/bin", "/bin"): |
| 27 |
sys.path.insert(0,parent) |
| 28 |
|
| 29 |
from pythonlib import qmldeps |
| 30 |
|
| 31 |
if __name__ == '__main__': |
| 32 |
qmldeps.main(sys.argv[1:]) |