File: post_install.py

package info (click to toggle)
granite 6.2.0-7
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,768 kB
  • sloc: python: 10; makefile: 8
file content (16 lines) | stat: -rwxr-xr-x 363 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/env python3

import argparse
import os
import subprocess

parser = argparse.ArgumentParser()
parser.add_argument("--iconsdir", action="store", required=True)
args = vars(parser.parse_args())

icons_dir = args["iconsdir"]

if not os.environ.get('DESTDIR'):
    print('Compiling icon cache ...')
    subprocess.run(['gtk-update-icon-cache', icons_dir])