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
376 B
Python
16 lines
376 B
Python
5 years ago
|
#!/usr/bin/env python
|
||
|
"""Detect the real python interpreter when running in a virtual environment created by the 'virtualenv' module."""
|
||
|
from __future__ import (absolute_import, division, print_function)
|
||
|
__metaclass__ = type
|
||
|
|
||
|
import json
|
||
|
|
||
|
try:
|
||
|
from sys import real_prefix
|
||
|
except ImportError:
|
||
|
real_prefix = None
|
||
|
|
||
|
print(json.dumps(dict(
|
||
|
real_prefix=real_prefix,
|
||
|
)))
|