OSG_Mugshot_fork/bin/mugshot

37 lines
1.3 KiB
Plaintext
Raw Permalink Normal View History

2014-01-25 23:13:56 +00:00
#!/usr/bin/python3
2013-07-12 17:56:24 +00:00
# -*- Mode: Python; coding: utf-8; indent-tabs-mode: nil; tab-width: 4 -*-
2014-01-25 23:13:56 +00:00
# Mugshot - Lightweight user configuration utility
2018-08-08 09:17:47 +00:00
# Copyright (C) 2013-2018 Sean Davis <smd.seandavis@gmail.com>
2014-01-25 23:13:56 +00:00
#
# This program is free software: you can redistribute it and/or modify it
2014-07-28 00:07:47 +00:00
# under the terms of the GNU General Public License as published by
2015-09-01 02:31:02 +00:00
# the Free Software Foundation, either version 3 of the License, or
2014-07-28 00:07:47 +00:00
# (at your option) any later version.
2014-01-25 23:13:56 +00:00
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranties of
# MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
# PURPOSE. See the 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/>.
2013-07-12 17:56:24 +00:00
2014-03-09 04:29:19 +00:00
import locale
locale.textdomain('mugshot')
2013-07-12 17:56:24 +00:00
import sys
import os
2014-01-25 23:13:56 +00:00
import gi
gi.require_version('Gtk', '3.0')
2013-07-12 17:56:24 +00:00
2014-01-25 23:13:56 +00:00
# Get project root directory (enable symlink and trunk execution)
2013-07-12 17:56:24 +00:00
PROJECT_ROOT_DIRECTORY = os.path.abspath(
os.path.dirname(os.path.dirname(os.path.realpath(sys.argv[0]))))
2014-01-25 23:13:56 +00:00
# Add project root directory to python search path
sys.path.append(PROJECT_ROOT_DIRECTORY)
2013-07-12 17:56:24 +00:00
import mugshot
mugshot.main()