-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbreeze-config
executable file
·48 lines (42 loc) · 1.78 KB
/
breeze-config
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#!/usr/bin/python3
# coding=utf-8
# Copyright (C) 2020 Hans P. Möller <hmollercl@lubuntu.me>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
import sys
from argparse import ArgumentParser
import gettext
from lubuntubreeze import breezeconfig
if __name__ == "__main__":
localesApp ="lubuntu-breeze-config"
localesDir ="/usr/share/locale"
gettext.bindtextdomain(localesApp, localesDir)
gettext.textdomain(localesApp)
_ = gettext.gettext
parser = ArgumentParser()
parser.add_argument('--version',
action='version',
version='%(prog)s 0.1')
parser.add_argument("--data-dir",
dest="datadir",
default="/usr/share/lubuntu-breeze-config",
help=_("data directory for UI files, default "
"/usr/share/lubuntu-breeze-config"))
parser.add_argument("--bin-dir",
dest="bindir",
default="/bin",
help=_("directory where this script is, default /bin"))
options = parser.parse_args()
# to test run as "./breeze-config --data-dir data --bin-dir ."
breezeconfig.main(sys.argv, options)