meson_post_install.py 291 Bytes
Newer Older
1 2 3 4 5 6 7 8
#!/usr/bin/env python3

import os
import subprocess
import sys

if not os.environ.get('DESTDIR'):
  print('Compiling gsettings schemas...')
9
  subprocess.call(['glib-compile-schemas', sys.argv[1]])
10 11

  print('GIO module cache creation...')
12
  subprocess.call(['gio-querymodules', sys.argv[2]])