Skip to content

Commit 401a77c

Browse files
committed
Look for python-config in base_prefix/bin
1 parent f6de97d commit 401a77c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main/scala/ai/kien/python/Python.scala

+3-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,9 @@ class Python private[python] (
8787

8888
private def ldversion: Try[String] = callPython(Python.ldversionCmd)
8989

90-
private lazy val binDir = callPython("import sysconfig;print(sysconfig.get_path('scripts'))")
90+
private lazy val binDir =
91+
callPython("import sys;print(sys.base_prefix)")
92+
.map(base => s"${base}${fs.getSeparator}bin")
9193

9294
private lazy val pythonConfigExecutable = for {
9395
binDir <- binDir

0 commit comments

Comments
 (0)