From cf5fd9456b0ecb0c6a27143859331c312868ef9b Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Wed, 28 Jan 2015 20:33:54 +0100 Subject: [PATCH] Add gen_resources.py script. --- scripts/gen_resources.py | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 scripts/gen_resources.py diff --git a/scripts/gen_resources.py b/scripts/gen_resources.py new file mode 100644 index 000000000..12bf5b97c --- /dev/null +++ b/scripts/gen_resources.py @@ -0,0 +1,26 @@ +#!/usr/bin/env python3 +# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: + +# copyright 2014 florian bruhin (the compiler) + +# this file is part of qutebrowser. +# +# qutebrowser is free software: you can redistribute it and/or modify +# it under the terms of the gnu general public license as published by +# the free software foundation, either version 3 of the license, or +# (at your option) any later version. +# +# qutebrowser is distributed in the hope that it will be useful, +# but without any warranty; without even the implied warranty of +# merchantability or fitness for a particular purpose. see the +# gnu general public license for more details. +# +# you should have received a copy of the gnu general public license +# along with qutebrowser. if not, see . + +"""Generate Qt resources based on source files.""" + +import subprocess + +with open('qutebrowser/resources.py', 'w', encoding='utf-8') as f: + subprocess.check_call(['pyrcc5', 'qutebrowser.rcc'], stdout=f)