rework project structure for more logical filenames and code separation
This commit is contained in:
parent
c603ab5c7c
commit
134d1a28a7
8 changed files with 258 additions and 228 deletions
23
mcg.py
Executable file
23
mcg.py
Executable 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)
|
||||
Loading…
Reference in a new issue