8a6af30c98
subrepo: subdir: "dotfiles/.vim/plugged/ansible-vim" merged: "93798e8c8" upstream: origin: "https://github.com/pearofducks/ansible-vim.git" branch: "master" commit: "93798e8c8" git-subrepo: version: "0.4.3" origin: "???" commit: "???"
12 lines
376 B
Bash
Executable file
12 lines
376 B
Bash
Executable file
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
IFS=$'\n\t'
|
|
|
|
cd "$(dirname "$0")"
|
|
|
|
ANSIBLE_MODULE_LOCATION="$(ansible --version | grep "ansible python module location" | sed -E 's/ +ansible python module location += +//g')"
|
|
PYTHONPATH="$(dirname "$ANSIBLE_MODULE_LOCATION")"
|
|
PYTHON_VERSION=$(basename "$(dirname "$PYTHONPATH")")
|
|
|
|
export PYTHONPATH
|
|
exec "$PYTHON_VERSION" generate.py $@
|