From 5966e8c523fe08b8b480544d36a45b7924c5a053 Mon Sep 17 00:00:00 2001 From: Tobias Gruetzmacher Date: Thu, 24 Dec 2020 14:05:48 +0100 Subject: [PATCH] Show Python version in "--version" output --- dosagelib/cmd.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dosagelib/cmd.py b/dosagelib/cmd.py index 8c9197321..347c406f3 100644 --- a/dosagelib/cmd.py +++ b/dosagelib/cmd.py @@ -5,6 +5,7 @@ import argparse import contextlib import os +import platform from pathlib import Path import appdirs @@ -118,6 +119,8 @@ def setup_options(): def display_version(verbose): """Display application name, version, copyright and license.""" print(configuration.App) + print("Using Python {} ({}) on {}".format(platform.python_version(), + platform.python_implementation(), platform.platform())) print(configuration.Copyright) print(configuration.Freeware) print("For support see", configuration.SupportUrl)