File: meson_update_mime_database.py

package info (click to toggle)
nemo 6.6.4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 9,100 kB
  • sloc: ansic: 128,108; xml: 1,560; python: 1,453; sh: 57; makefile: 20
file content (10 lines) | stat: -rw-r--r-- 254 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
#!/usr/bin/python3

import os
import subprocess

mimedir = os.path.join(os.environ['MESON_INSTALL_PREFIX'], 'share', 'mime')

if not os.environ.get('DESTDIR'):
    print('Updating mime database...')
    subprocess.call(['update-mime-database', mimedir])