mcg/mcgGtk.py

42 lines
769 B
Python
Raw Normal View History

#!/usr/bin/env python3
# -*- coding: utf-8 -*-
2013-03-02 03:18:11 +01:00
"""MPDCoverGrid (GTK version) is a client for the Music Player Daemon, focused on albums instead of single tracks."""
2013-03-02 03:18:11 +01:00
__author__ = "coderkun"
__email__ = "<olli@coderkun.de>"
__license__ = "GPL"
2013-10-16 15:30:28 +02:00
__version__ = "0.4"
2013-03-02 03:18:11 +01:00
__status__ = "Development"
2013-10-16 15:30:28 +02:00
import os
import sys
2013-03-02 03:38:13 +01:00
from gi.repository import Gtk, Gdk, GObject
2013-10-16 15:30:28 +02:00
from gui import gtk
# Set environment
srcdir = os.path.abspath(os.path.join(os.path.dirname(gtk.__file__), '..'))
if not os.environ.get('GSETTINGS_SCHEMA_DIR'):
os.environ['GSETTINGS_SCHEMA_DIR'] = os.path.join(srcdir, 'data')
2013-10-16 15:30:28 +02:00
def start():
app = gtk.Application()
exit_status = app.run(sys.argv)
sys.exit(exit_status)
if __name__ == "__main__":
# Start application
start()