summaryrefslogtreecommitdiff
path: root/src/installschemas.py
blob: 0de1c6e0c889231d921ced3abdd02b65a873f45f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/env python

# Author : Guillaume "iXce" Seguin
# Email  : ixce@beryl-project.org
#
# Copyright (C) 2007 Guillaume Seguin - This file is under GPLv2 license

from os import listdir, system, unlink

for f in listdir ("."):
	if f[-8:] == ".options":
		schema = "%s.schema" % f[:-8]
		system (("bcop --schema=%s %s" % (schema, f)))
		system (("gconftool-2 --install-schema-file=%s" % schema))
		unlink (schema)