summaryrefslogtreecommitdiffstats
path: root/meta-python/recipes-devtools/python/python3-sqlparse/run-ptest
diff options
context:
space:
mode:
authorSilcet <camorga1@gmail.com>2021-04-23 16:28:02 +0200
committerArmin Kuster <akuster808@gmail.com>2021-05-17 07:18:40 -0700
commitc7150fc61dab6783d31664caa46264e8ee4c1086 (patch)
tree24a1ded6d2d91ec9eea94741e7578b13a3e18520 /meta-python/recipes-devtools/python/python3-sqlparse/run-ptest
parent0cbced2d51a53830adede45aaa1a007a143ac906 (diff)
downloadmeta-openembedded-c7150fc61dab6783d31664caa46264e8ee4c1086.tar.gz
ufw: fix python shebang
[meta-openembedded ticket #327] -- https://github.com/openembedded/meta-openembedded/issues/327 The python version in the shebang at the begining of the ufw script should be the same one as the version the setup.py script was called with. The fix in patch "setup-only-make-one-reference-to-env.patch" depends on sys.executable returning "/usr/bin/env pythonX". However, it returns "/usr/bin/pythonX". Using sys.version_info we can get the major version of the python used to called the script and append that to the shebang line so it works as intended. Signed-off-by: Silcet <camorga1@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com> (cherry picked from commit 5194af1afd6b1e834af52e9b38d5ae6e19c637b0) Signed-off-by: Armin Kuster <akuster808@gmail.com>
Diffstat (limited to 'meta-python/recipes-devtools/python/python3-sqlparse/run-ptest')
0 files changed, 0 insertions, 0 deletions