Skip to content

Commit 0c316e2

Browse files
authored
fix: make sure the full path is visible to the program too (#558)
1 parent 7509fc2 commit 0c316e2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/cmake/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ def _program(name: str, args: Iterable[str]) -> int:
4949
def _program_exit(name: str, *args: str) -> NoReturn:
5050
if sys.platform.startswith("win"):
5151
raise SystemExit(_program(name, args))
52-
os.execl(os.path.join(CMAKE_BIN_DIR, name), name, *args)
52+
cmake_exe = os.path.join(CMAKE_BIN_DIR, name)
53+
os.execl(cmake_exe, cmake_exe, *args)
5354

5455

5556
def ccmake() -> NoReturn:

0 commit comments

Comments
 (0)