Use configuration file
This commit is contained in:
parent
f1d5292177
commit
4bac2acc79
|
@ -4,12 +4,14 @@ name = 'karaoke'
|
||||||
help_text = 'GUI for negromate karaoke'
|
help_text = 'GUI for negromate karaoke'
|
||||||
|
|
||||||
|
|
||||||
def options(parser):
|
def options(parser, config, **kwargs):
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
'song_folder', type=Path,
|
'-s', '--song_folder', type=Path,
|
||||||
help="Folder with the song database.")
|
default=config['global']['song_folder'],
|
||||||
|
help="Folder with the song database, defaults to {}".format(
|
||||||
|
config['global']['song_folder']))
|
||||||
|
|
||||||
|
|
||||||
def run(args):
|
def run(args, **kwargs):
|
||||||
from ..karaoke import main
|
from ..karaoke import main
|
||||||
main(args.song_folder)
|
main(args.song_folder.expanduser())
|
||||||
|
|
Loading…
Reference in New Issue