[libcxx-commits] [libcxx] [libcxx] [test] Quote the python executable in the executor (PR #68208)

Alexander Richardson via libcxx-commits libcxx-commits at lists.llvm.org
Wed Oct 4 07:08:51 PDT 2023


================
@@ -320,7 +320,7 @@ def getStdFlag(cfg, std):
     Parameter(
         name="executor",
         type=str,
-        default=f"{sys.executable} {Path(__file__).resolve().parent.parent.parent / 'run.py'}",
+        default=f"\"{sys.executable}\" {Path(__file__).resolve().parent.parent.parent / 'run.py'}",
----------------
arichardson wrote:

Could also use shutil.quote(sys.executable) to avoid unnecessary quoting?

https://github.com/llvm/llvm-project/pull/68208


More information about the libcxx-commits mailing list