summaryrefslogtreecommitdiff
path: root/.config/qutebrowser/scripts/dev/gen_resources.py
diff options
context:
space:
mode:
authorVito Graffagnino <vito@graffagnino.xyz>2020-09-08 18:10:49 +0100
committerVito Graffagnino <vito@graffagnino.xyz>2020-09-08 18:10:49 +0100
commit3b0142cedcde39e4c2097ecd916a870a3ced5ec6 (patch)
tree2116c49a845dfc0945778f2aa3e2118d72be428b /.config/qutebrowser/scripts/dev/gen_resources.py
parent8cc927e930d5b6aafe3e9862a61e81705479a1b4 (diff)
Added the relevent parts of the .config directory. Alss add ssh config
Diffstat (limited to '.config/qutebrowser/scripts/dev/gen_resources.py')
-rw-r--r--.config/qutebrowser/scripts/dev/gen_resources.py26
1 files changed, 26 insertions, 0 deletions
diff --git a/.config/qutebrowser/scripts/dev/gen_resources.py b/.config/qutebrowser/scripts/dev/gen_resources.py
new file mode 100644
index 0000000..cbfc69b
--- /dev/null
+++ b/.config/qutebrowser/scripts/dev/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) <mail@qutebrowser.org>
+
+# 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 <http://www.gnu.org/licenses/>.
+
+"""Generate Qt resources based on source files."""
+
+import subprocess
+
+with open('qutebrowser/resources.py', 'w', encoding='utf-8') as f:
+ subprocess.run(['pyrcc5', 'qutebrowser.rcc'], stdout=f, check=True)