Skip to content

Commit c46d33f

Browse files
committed
Use /usr/bin/env in every subprocess command
1 parent 222bd80 commit c46d33f

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

Diff for: src/zimscraperlib/image/optimization.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ def optimize_gif(
239239
ensure_matches(src, "GIF")
240240

241241
# use gifsicle
242-
args = ["gifsicle"]
242+
args = ["/usr/bin/env", "gifsicle"]
243243
if optimize_level:
244244
args += [f"-O{optimize_level}"]
245245
if max_colors:

Diff for: src/zimscraperlib/video/encoding.py

+1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ def reencode(
3333
with tempfile.TemporaryDirectory() as tmp_dir:
3434
tmp_path = pathlib.Path(tmp_dir).joinpath(f"video.tmp{dst_path.suffix}")
3535
args = [
36+
"/usr/bin/env",
3637
"ffmpeg",
3738
"-y",
3839
"-i",

Diff for: src/zimscraperlib/video/probing.py

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ def get_media_info(src_path):
1313
bitrate: file's main bitrate"""
1414

1515
args = [
16+
"/usr/bin/env",
1617
"ffprobe",
1718
"-i",
1819
f"file:{src_path}",

0 commit comments

Comments
 (0)