gnome-control-center/meson_post_install.py
Georges Basile Stavracas Neto e776111bc0 build: Fix post-install script indentation
Python best practices say that indentation should be a
multiple of 4.
2018-03-06 22:02:14 -03:00

15 lines
438 B
Python

#!/usr/bin/env python3
import os
import subprocess
import sys
gsettingsschemadir = os.path.join(sys.argv[1], 'glib-2.0', 'schemas')
icondir = os.path.join(sys.argv[1], 'icons', 'hicolor')
if not os.environ.get('DESTDIR'):
print('Compiling gsettings schemas...')
subprocess.call(['glib-compile-schemas', gsettingsschemadir])
print('Update icon cache...')
subprocess.call(['gtk-update-icon-cache', '-f', '-t', icondir])