From 7eb4f2eb645c71d4d5044913368baec796171cb1 Mon Sep 17 00:00:00 2001 From: Alexandre Archambault Date: Thu, 18 Aug 2022 19:59:04 +0200 Subject: [PATCH] Clean-up debug stuff --- build.sc | 26 -------------------------- 1 file changed, 26 deletions(-) diff --git a/build.sc b/build.sc index 8e28521d0..85274936d 100644 --- a/build.sc +++ b/build.sc @@ -478,32 +478,6 @@ def validateExamples(matcher: String = "") = { val kernelId = "almond-sources-tmp" val baseRepoRoot = os.rel / "out" / "repo" - def inspect(name: String): Unit = { - pprint.log(name) - pprint.log(System.getenv(name)) - Option(System.getenv(name)) - .toSeq - .flatMap(_.split(java.io.File.pathSeparator).toSeq) - .filter(_.toLowerCase(java.util.Locale.ROOT).contains("python")) - .map(os.Path(_, os.pwd)) - .filter(os.isDir(_)) - .foreach { dir => - pprint.log(dir) - pprint.log(os.list(dir)) - } - } - - inspect("PATH") - if (Properties.isMac) - inspect("LYLD_LIBRARY_PATH") - else if (!Properties.isWin) - inspect("LD_LIBRARY_PATH") - - if (Properties.isWin) - pprint.log(os.proc("where", "python").call().out.text) - else - pprint.log(os.proc("which", "python").call().out.text) - def maybeEscapeArg(arg: String): String = if (Properties.isWin && arg.exists(c => c == ' ' || c == '\"')) "\"" + arg.replace("\"", "\\\"") + "\""