Show Python version in "--version" output
This commit is contained in:
parent
b951fa009f
commit
5966e8c523
1 changed files with 3 additions and 0 deletions
|
@ -5,6 +5,7 @@
|
||||||
import argparse
|
import argparse
|
||||||
import contextlib
|
import contextlib
|
||||||
import os
|
import os
|
||||||
|
import platform
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
||||||
import appdirs
|
import appdirs
|
||||||
|
@ -118,6 +119,8 @@ def setup_options():
|
||||||
def display_version(verbose):
|
def display_version(verbose):
|
||||||
"""Display application name, version, copyright and license."""
|
"""Display application name, version, copyright and license."""
|
||||||
print(configuration.App)
|
print(configuration.App)
|
||||||
|
print("Using Python {} ({}) on {}".format(platform.python_version(),
|
||||||
|
platform.python_implementation(), platform.platform()))
|
||||||
print(configuration.Copyright)
|
print(configuration.Copyright)
|
||||||
print(configuration.Freeware)
|
print(configuration.Freeware)
|
||||||
print("For support see", configuration.SupportUrl)
|
print("For support see", configuration.SupportUrl)
|
||||||
|
|
Loading…
Reference in a new issue