()
| 125 | } |
| 126 | |
| 127 | func execPythonConfig() ([]byte, error) { |
| 128 | // Try to include the "embed" flag first |
| 129 | // introduced in Python 3.8: https://docs.python.org/3.8/whatsnew/3.8.html#debug-build-uses-the-same-abi-as-release-build |
| 130 | out, err := exec.Command(pythonConfigPath, "--ldflags", "--embed").Output() |
| 131 | if err != nil { |
| 132 | return exec.Command(pythonConfigPath, "--ldflags").Output() |
| 133 | } |
| 134 | return out, err |
| 135 | } |
| 136 | |
| 137 | func getLibraryPathFromCfg() error { |
| 138 | out, err := execPythonConfig() |
no outgoing calls
no test coverage detected