summaryrefslogtreecommitdiffstats
path: root/src/modules/gsettings/meson_post_install.py
blob: 0ddb70dede6c0bd99bbfbedc5b1580f3b420984a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/env python3

import os
import subprocess
import sys

datadir = sys.argv[1]

# Package managers set this so we don't need to run
if not os.environ.get('DESTDIR'):
    schemadir = os.path.join(datadir, 'glib-2.0', 'schemas')
    print('Compiling gsettings schemas...')
    subprocess.call(['glib-compile-schemas', schemadir])