Skip to content

Commit

Permalink
Clean-up debug stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
alexarchambault committed Aug 18, 2022
1 parent 63ed01b commit 7eb4f2e
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions build.sc
Original file line number Diff line number Diff line change
Expand Up @@ -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("\"", "\\\"") + "\""
Expand Down

0 comments on commit 7eb4f2e

Please sign in to comment.