summaryrefslogtreecommitdiff
path: root/pybanner.py
blob: b3a3c85c4510e7923fb6a0043371e05c024eb55d (plain)
1
2
3
4
5
6
7
8
9
10
11
# For printing the python version during tests.

import platform
import sys

try:
    impl = platform.python_implementation()
except AttributeError:
    impl = "Python"

print('=== %s %s %s (%s) ===' % (impl, platform.python_version(), sys.argv[1], sys.executable))