mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
16 lines
244 B
Python
16 lines
244 B
Python
|
#!/usr/bin/env python
|
||
|
"""Show python and pip versions."""
|
||
|
|
||
|
import os
|
||
|
import sys
|
||
|
|
||
|
try:
|
||
|
import pip
|
||
|
except ImportError:
|
||
|
pip = None
|
||
|
|
||
|
print(sys.version)
|
||
|
|
||
|
if pip:
|
||
|
print('pip %s from %s' % (pip.__version__, os.path.dirname(pip.__file__)))
|