From 70591b3045ffb5d6607556e2c9c594b535924112 Mon Sep 17 00:00:00 2001 From: Matt Date: Wed, 18 Sep 2024 18:11:30 -0700 Subject: [PATCH] Oops --- photon-lib/build.gradle | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/photon-lib/build.gradle b/photon-lib/build.gradle index e52f52860..b55a3ad25 100644 --- a/photon-lib/build.gradle +++ b/photon-lib/build.gradle @@ -43,12 +43,12 @@ nativeUtils { def getPythonIncludePath = { def pythonexe = project.findProperty('pythonExecutable') ?: 'python3' - File.createTempFile("temp",".py").with { - write "from sysconfig import get_paths as gp; print(gp()['include'])" + File.createTempFile("temp",".py").with { f -> + f.write "from sysconfig import get_paths as gp; print(gp()['include'])" def stdout = new ByteArrayOutputStream() exec { - commandLine pythonexe, '-c', 'from sysconfig import get_paths as gp; print(gp()["include"])' + commandLine pythonexe, f.absolutePath standardOutput = stdout } def ret = stdout.toString().trim();