MCPcopy Create free account
hub / github.com/TykTechnologies/tyk / execPythonConfig

Function execPythonConfig

dlpython/main.go:127–135  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

125}
126
127func 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
137func getLibraryPathFromCfg() error {
138 out, err := execPythonConfig()

Callers 1

getLibraryPathFromCfgFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected