![](https://seccdn.libravatar.org/avatar/f7fd25bd4afbd5b80af193b390563b6a.jpg?s=120&d=mm&r=g)
29 May
2017
29 May
'17
14:19
hello, On 25.5.2017 17:39, Sebastian wrote:
I can easily replace 'python' with e.g. 'python3' with sed:
sed -i 's/python/python3/' .testr.conf testr init testr run --parallel
It works, but it's not a nice solution and can break in the future. So I'd somehow need to "iterate" over all available python-binaries.
this is what %python_expand is for (are you confusing it with %python_exec?) %{python_expand # first line can't be empty rm -r testrepository sed -i 's/python/$python/' .testr.conf testr init testr run --parallel } hope this helps m.