summaryrefslogtreecommitdiff
path: root/xstc
diff options
context:
space:
mode:
authorDavid Seifert <soap@gentoo.org>2022-04-06 19:57:30 +0200
committerDavid Seifert <soap@gentoo.org>2022-04-06 19:57:30 +0200
commita62b31f43fe80177801490c6eab0097340d4f323 (patch)
tree76bdebc47337e3dd6bcac3d90b131b4cfdf1d67f /xstc
parentf2987a295ff847ecb2a6a3eae1a271c9a64255b6 (diff)
downloadlibxml2-a62b31f43fe80177801490c6eab0097340d4f323.tar.gz
Use portable python shebangs
* In conda or Gentoo Prefix, we don't want to use the system python and instead rely on PATH lookup.
Diffstat (limited to 'xstc')
-rwxr-xr-xxstc/fixup-tests.py2
-rwxr-xr-xxstc/xstc-to-python.xsl2
2 files changed, 2 insertions, 2 deletions
diff --git a/xstc/fixup-tests.py b/xstc/fixup-tests.py
index 6e33d1c4..921820b3 100755
--- a/xstc/fixup-tests.py
+++ b/xstc/fixup-tests.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python -u
+#!/usr/bin/env python
import sys, os
import libxml2
diff --git a/xstc/xstc-to-python.xsl b/xstc/xstc-to-python.xsl
index 78d55cd6..37de882c 100755
--- a/xstc/xstc-to-python.xsl
+++ b/xstc/xstc-to-python.xsl
@@ -7,7 +7,7 @@
<xsl:output method="text"/>
<xsl:template match="/">
- <xsl:text>#!/usr/bin/python -u
+ <xsl:text>#!/usr/bin/env python
# -*- coding: UTF-8 -*-
#
# This file is generated from the W3C test suite description file.