mirror of https://github.com/ansible/ansible.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
244 B
Python
16 lines
244 B
Python
6 years ago
|
#!/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__)))
|