diff options
Diffstat (limited to 'scripts/dev/gen_resources.py')
-rw-r--r-- | scripts/dev/gen_resources.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/scripts/dev/gen_resources.py b/scripts/dev/gen_resources.py index dd76c123e..efa6c6a3d 100644 --- a/scripts/dev/gen_resources.py +++ b/scripts/dev/gen_resources.py @@ -21,6 +21,10 @@ """Generate Qt resources based on source files.""" import subprocess +import pathlib -with open('qutebrowser/resources.py', 'w', encoding='utf-8') as f: - subprocess.run(['pyrcc5', 'qutebrowser.rcc'], stdout=f, check=True) +ROOT = pathlib.Path(__file__).parents[2] +OUTPUT = ROOT / 'qutebrowser' / 'resources.py' +INPUT = ROOT / 'misc' / 'qutebrowser.rcc' + +subprocess.run(['pyrcc5', '-o', str(OUTPUT), str(INPUT)], check=True) |