Skip to content

Commit b5c58b8

Browse files
authored
Merge pull request #282 from blink1073/fix-macos-tests
2 parents b06d917 + 059c5e8 commit b5c58b8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

jupyter_releaser/lib.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import os.path as osp
55
import re
66
import shutil
7+
import sys
78
import uuid
89
from datetime import datetime
910
from glob import glob
@@ -48,7 +49,8 @@ def check_links(ignore_glob, ignore_links, cache_file, links_expire):
4849
"""Check URLs for HTML-containing files."""
4950
cache_dir = osp.expanduser(cache_file).replace(os.sep, "/")
5051
os.makedirs(cache_dir, exist_ok=True)
51-
cmd = "pytest --noconftest --check-links --check-links-cache "
52+
python = sys.executable.replace(os.sep, "/")
53+
cmd = f"{python} -m pytest --noconftest --check-links --check-links-cache "
5254
cmd += f"--check-links-cache-expire-after {links_expire} "
5355
cmd += "--disable-warnings --quiet "
5456
cmd += f"--check-links-cache-name {cache_dir}/check-release-links "

0 commit comments

Comments
 (0)