]> kaliko git repositories - mpd-goodies.git/commitdiff
Fixed mtime prog name
authorkaliko <kaliko@azylum.org>
Sat, 18 May 2019 07:56:26 +0000 (09:56 +0200)
committerkaliko <kaliko@azylum.org>
Sat, 18 May 2019 07:56:26 +0000 (09:56 +0200)
bin/mtime

index 24f1538ab11552478a48564afd606b50b2f503f7..bca4fab912206e33ade4feaebdad72fae0c4e7d0 100755 (executable)
--- 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'
     })