Use env to find python3

Our container doesn't have python3 at /usr/bin/python3. This
changes the script so that /usr/bin/env is used to find python3.

For discussion/opinions about how (and the better way) to locate
python3:

- https://developpaper.com/the-difference-between-usr-bin-python-and-usr-bin-env-python-in-python/
- https://stackoverflow.com/questions/13879569/usr-bin-python-and-usr-bin-env-python-which-support

Change-Id: I88cab53244913b5c9bfce6729f38f93a57ddbe80
This commit is contained in:
Ruby Loo 2021-06-14 17:02:54 +00:00
parent 59218ce523
commit 7507dec09f

View File

@ -1,4 +1,4 @@
#!/usr/bin/python3
#!/usr/bin/env python3
# Copyright (c) 2017 Intel Corporation
#