From e9fd497f2d5e1a00d7d480632e5f42b4922c296e Mon Sep 17 00:00:00 2001 From: sina Date: Sun, 31 Mar 2024 14:50:04 +0200 Subject: [PATCH] print r2t version & enable logger --- read2tree/main.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/read2tree/main.py b/read2tree/main.py index f7e6e33f..23b33b01 100644 --- a/read2tree/main.py +++ b/read2tree/main.py @@ -30,7 +30,7 @@ COPYRIGHT = '(C) 2017-{:d} David V Dylus'.format(date.today().year) logger = logging.getLogger(__name__) -logger.disabled = True +#logger.disabled = True def parse_args(argv, exe_name, desc): ''' @@ -262,6 +262,10 @@ def main(argv, exe_name, desc=''): ''' Main function. ''' + from . import __version__ as r2t_version + + logger.info(' ------- Read2Tree version: {} -------'.format(r2t_version)) + print(' ------- Read2Tree version: '+str(r2t_version)+' -------') t1 = timer() # Parse