mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
19 lines
279 B
Python
Executable file
19 lines
279 B
Python
Executable file
#!/usr/bin/env python
|
|
"""Show python and pip versions."""
|
|
|
|
import json
|
|
|
|
try:
|
|
import yaml
|
|
except ImportError:
|
|
yaml = None
|
|
|
|
try:
|
|
from yaml import CLoader
|
|
except ImportError:
|
|
CLoader = None
|
|
|
|
print(json.dumps(dict(
|
|
yaml=bool(yaml),
|
|
cloader=bool(CLoader),
|
|
)))
|