From c3d3e3e94322ae62017784dc3c723b3bceb43818 Mon Sep 17 00:00:00 2001 From: kaliko Date: Sat, 18 May 2019 09:56:26 +0200 Subject: [PATCH] Fixed mtime prog name --- bin/mtime | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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' }) -- 2.39.5