Lines Matching refs:env
1799 wchar_t env[4] = L"=x:";
1821 env[1] = new_path[0];
1822 result = SetEnvironmentVariableW(env, new_path);
5730 parse_envlist(PyObject* env, Py_ssize_t *envc_ptr)
5737 i = PyMapping_Size(env);
5746 keys = PyMapping_Keys(env);
5749 vals = PyMapping_Values(env);
5754 "env.keys() or env.values() is not a list");
5928 env: object
5935 os_execve_impl(PyObject *module, path_t *path, PyObject *argv, PyObject *env)
5942 /* execve has three arguments: (path, argv, env), where
5943 argv is a list or tuple of strings and env is a dictionary
5957 if (!PyMapping_Check(env)) {
5973 envlist = parse_envlist(env, &envc);
5977 if (PySys_Audit("os.exec", "OOO", path->object, argv, env) < 0) {
6274 PyObject *env, PyObject *file_actions,
6291 /* posix_spawn and posix_spawnp have three arguments: (path, argv, env), where
6292 argv is a list or tuple of strings and env is a dictionary
6307 if (!PyMapping_Check(env)) {
6323 envlist = parse_envlist(env, &envc);
6353 if (PySys_Audit("os.posix_spawn", "OOO", path->object, argv, env) < 0) {
6406 env: object
6430 PyObject *env, PyObject *file_actions,
6436 return py_posix_spawn(0, module, path, argv, env, file_actions,
6452 env: object
6476 PyObject *env, PyObject *file_actions,
6482 return py_posix_spawn(1, module, path, argv, env, file_actions,
6632 env: object
6641 PyObject *env)
6652 /* spawnve has four arguments: (mode, path, argv, env), where
6653 argv is a list or tuple of strings and env is a dictionary
6674 if (!PyMapping_Check(env)) {
6703 envlist = parse_envlist(env, &envc);
6712 if (PySys_Audit("os.spawn", "iOOO", mode, path->object, argv, env) < 0) {
11083 wchar_t *env = PyUnicode_AsWideCharString(unicode, &size);
11086 if (env == NULL) {
11093 PyMem_Free(env);
11103 int err = _wputenv(env);
11104 PyMem_Free(env);