From 6120d543c14a0ef48135334743c7c46989a4719b Mon Sep 17 00:00:00 2001 From: Monty Taylor Date: Fri, 22 Sep 2017 10:07:11 -0500 Subject: [PATCH] Set shebang line of zuul-cloner script To run a script in a virtualenv, you need to us the python in the virtualenv. This script needs things (yaml) that arent' on the base system but instead are only in the virtualenv. Change-Id: Ic915c4db30814b7deefd8adc234df594d1eb20fa --- roles/fetch-zuul-cloner/templates/zuul-cloner-shim.py.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/fetch-zuul-cloner/templates/zuul-cloner-shim.py.j2 b/roles/fetch-zuul-cloner/templates/zuul-cloner-shim.py.j2 index a922d1ed9..32b3f2285 100644 --- a/roles/fetch-zuul-cloner/templates/zuul-cloner-shim.py.j2 +++ b/roles/fetch-zuul-cloner/templates/zuul-cloner-shim.py.j2 @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!{{ destination | dirname }}/python # Copyright 2017 Red Hat # # Licensed under the Apache License, Version 2.0 (the "License"); you may