diff options
author | Ting-Wei Lan <lantw@src.gnome.org> | 2018-09-30 22:33:44 +0800 |
---|---|---|
committer | Ting-Wei Lan <lantw@src.gnome.org> | 2018-10-02 22:00:40 +0800 |
commit | acd253dcc61d0b69dc6aa345ad4f148038c26290 (patch) | |
tree | f319c1fcd2d1b60643b516730c283ccbec67847a | |
parent | b700ef614db195390d3d10abdd7b11cd9c16557d (diff) | |
download | geoclue-acd253dcc61d0b69dc6aa345ad4f148038c26290.tar.gz |
build: Don't hardcode the path of python3
Hardcoding paths to interpreters seldom works on *BSD. The ports system
allows users to choose their preferred installation prefix as long as it
is not /usr. This makes it nearly impossible to have a common path of
python3 which works on both GNU/Linux and *BSD.
-rw-r--r-- | demo/install-file.py | 2 | ||||
-rwxr-xr-x | src/create-unified-xml.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/demo/install-file.py b/demo/install-file.py index 7a10728..7fbd948 100644 --- a/demo/install-file.py +++ b/demo/install-file.py @@ -1,4 +1,4 @@ -#!/usr/bin/python3 +#!/usr/bin/env python3 # A simple script that copies a given file (first arg) to a given location # (second arg). diff --git a/src/create-unified-xml.py b/src/create-unified-xml.py index 63c2a93..f9e7bc8 100755 --- a/src/create-unified-xml.py +++ b/src/create-unified-xml.py @@ -1,4 +1,4 @@ -#!/usr/bin/python3 +#!/usr/bin/env python3 from xml.etree import ElementTree as et import sys |