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.
mitogen/tests/ansible/lib/modules/custom_python_os_getcwd.py

15 lines
250 B
Python

#!/usr/bin/python
# #591: call os.getcwd() before AnsibleModule ever gets a chance to fix up the
# process environment.
import os
try:
import json
except ImportError:
import simplejson as json
print(json.dumps({
'cwd': os.getcwd()
}))