We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 835139f commit 45eaee9Copy full SHA for 45eaee9
pybind11/__main__.py
@@ -2,6 +2,7 @@
2
from __future__ import annotations
3
4
import argparse
5
+import shlex
6
import sys
7
import sysconfig
8
@@ -22,7 +23,7 @@ def print_includes() -> None:
22
23
if d and d not in unique_dirs:
24
unique_dirs.append(d)
25
- print(" ".join("-I" + d for d in unique_dirs))
26
+ print(" ".join(shlex.quote(f"-I{d}") for d in unique_dirs))
27
28
29
def main() -> None:
@@ -54,9 +55,9 @@ def main() -> None:
54
55
if args.includes:
56
print_includes()
57
if args.cmakedir:
- print(get_cmake_dir())
58
+ print(shlex.quote(get_cmake_dir()))
59
if args.pkgconfigdir:
- print(get_pkgconfig_dir())
60
+ print(shlex.quote(get_pkgconfig_dir()))
61
62
63
if __name__ == "__main__":
0 commit comments