Helper: Get path from Python's os.environ
(
environ: &PyObject,
var_name: &str,
vm: &VirtualMachine,
)
| 1312 | |
| 1313 | /// Helper: Get path from Python's os.environ |
| 1314 | fn get_env_path( |
| 1315 | environ: &PyObject, |
| 1316 | var_name: &str, |
| 1317 | vm: &VirtualMachine, |
| 1318 | ) -> PyResult<String> { |
| 1319 | let path_obj = environ.get_item(var_name, vm)?; |
| 1320 | path_obj.try_into_value(vm) |
| 1321 | } |
| 1322 | |
| 1323 | /// Helper: Try to load certificates from Python's os.environ variables |
| 1324 | /// |
nothing calls this directly
no test coverage detected