From: kaliko Date: Sat, 18 May 2019 07:56:26 +0000 (+0200) Subject: Fixed mtime prog name X-Git-Url: https://git.kaliko.me/?a=commitdiff_plain;h=c3d3e3e94322ae62017784dc3c723b3bceb43818;p=mpd-goodies.git Fixed mtime prog name --- diff --git a/bin/mtime b/bin/mtime index 24f1538..bca4fab 100755 --- a/bin/mtime +++ b/bin/mtime @@ -21,6 +21,7 @@ import argparse import sys from datetime import timedelta +from os.path import basename import musicpd @@ -29,7 +30,7 @@ VERSION = '0.2' class Mtime(musicpd.MPDClient): script_info = dict({ - 'prog': 'mtime', + 'prog': basename(__file__), 'description': 'Print current playlist duration.', 'epilog': 'Set MPD host/port in env. var' })