rework project structure for more logical filenames and code separation

This commit is contained in:
coderkun 2016-08-01 11:39:24 +02:00
commit 134d1a28a7
8 changed files with 258 additions and 228 deletions

23
mcg.py Executable file
View file

@ -0,0 +1,23 @@
#!/usr/bin/env python3
"""MPDCoverGrid is a client for the Music Player Daemon, focused on albums instead of single tracks."""
import os
import sys
from mcg.application import Application
if __name__ == "__main__":
# Set environment
srcdir = os.path.abspath(os.path.dirname(__file__))
if not os.environ.get('GSETTINGS_SCHEMA_DIR'):
os.environ['GSETTINGS_SCHEMA_DIR'] = os.path.join(srcdir, 'data')
# Start application
app = Application()
exit_status = app.run(sys.argv)
sys.exit(exit_status)