Skip to content

Instantly share code, notes, and snippets.

@sehj
sehj / auto_create_qrc.py
Created August 12, 2016 22:29
auto scan resources file and create Qt resource(qrc) file for PySide/PyQt project
#!/usr/bin/env python
"""
auto scan resources file and create Qt resource(qrc) file for PySide/PyQt project
Usage:
python auto_create_qrc.py your_pictures_path > bar.qrc
pyside-rcc -no-compress bar.qrc -o bar.py # if you use PySide
pyrcc4-2.7 -no-compress bar.qrc -o bar.py # if you use PyQt