1#!/usr/local/bin/python3.8
2
3import os
4import subprocess
5import sys
6
7destdir = os.environ.get('DESTDIR', '')
8
9if not destdir and len(sys.argv) > 1:
10    datadir = sys.argv[1]
11
12    print('Compiling gsettings schemas...')
13    subprocess.call(['glib-compile-schemas', os.path.join(datadir, 'glib-2.0', 'schemas')])
14
15