Home
last modified time | relevance | path

Searched refs:environ (Results 1 – 25 of 613) sorted by relevance

12345678910>>...25

/third_party/python/Lib/wsgiref/
Dutil.py42 def guess_scheme(environ): argument
45 if environ.get("HTTPS") in ('yes','on','1'):
50 def application_uri(environ): argument
52 url = environ['wsgi.url_scheme']+'://'
55 if environ.get('HTTP_HOST'):
56 url += environ['HTTP_HOST']
58 url += environ['SERVER_NAME']
60 if environ['wsgi.url_scheme'] == 'https':
61 if environ['SERVER_PORT'] != '443':
62 url += ':' + environ['SERVER_PORT']
[all …]
Dvalidate.py151 environ, start_response = args
153 check_environ(environ)
178 environ['wsgi.input'] = InputWrapper(environ['wsgi.input'])
179 environ['wsgi.errors'] = ErrorWrapper(environ['wsgi.errors'])
181 iterator = application(environ, start_response_wrapper)
298 def check_environ(environ): argument
299 assert_(type(environ) is dict,
301 % (type(environ), environ))
307 assert_(key in environ,
311 assert_(key not in environ,
[all …]
Dhandlers.py42 environ = {}
47 for k, v in os.environ.items():
53 software = os.environ.get('SERVER_SOFTWARE', '').lower()
90 environ[k] = v
91 return environ
137 self.result = application(self.environ, self.start_response)
155 env = self.environ = self.os_environ.copy()
201 return guess_scheme(self.environ)
337 self.result = self.headers = self.status = self.environ = None
358 return self.environ['SERVER_PROTOCOL'].upper() != 'HTTP/0.9'
[all …]
/third_party/grpc/tools/run_tests/artifacts/
Dartifact_targets.py29 environ={}, argument
37 environ = environ.copy()
38 environ['RUN_COMMAND'] = shell_command
39 environ['ARTIFACTS_OUT'] = 'artifacts/%s' % name
42 for k, v in environ.items():
57 environ=docker_env,
68 environ={}, argument
77 environ = environ.copy()
79 environ['WORKSPACE_NAME'] = 'workspace_%s' % name
80 environ['ARTIFACTS_OUT'] = os.path.join('..', 'artifacts', name)
[all …]
Ddistribtest_targets.py27 environ={}, argument
33 environ = environ.copy()
34 environ['RUN_COMMAND'] = shell_command
37 environ['RELATIVE_COPY_PATH'] = copy_rel_path
40 for k, v in environ.items():
49 environ=docker_env,
59 environ=None, argument
66 environ = environ.copy()
68 environ['WORKSPACE_NAME'] = 'workspace_%s' % name
72 environ=environ,
[all …]
Dpackage_targets.py27 environ={}, argument
31 environ = environ.copy()
32 environ['RUN_COMMAND'] = shell_command
35 for k, v in environ.items():
45 environ=docker_env,
55 environ=None, argument
63 environ=environ,
/third_party/mindspore/tests/ut/python/
Dtest_log.py52 os.environ['GLOG_v'] = '0'
70 os.environ['GLOG_v'] = '2'
71 os.environ['GLOG_logtostderr'] = '0'
72 os.environ['GLOG_log_dir'] = file_path
109 os.environ['GLOG_v'] = '1'
110 os.environ['GLOG_logtostderr'] = '0'
111 os.environ['GLOG_log_dir'] = file_path
112 os.environ['logger_maxBytes'] = '1000'
113 os.environ['logger_backupCount'] = '10'
147 os.environ['GLOG_v'] = 'test'
[all …]
/third_party/mindspore/tests/ut/python/dataset/
Dtest_cache_map.py41 @pytest.mark.skipif(os.environ.get('RUN_CACHE_TEST') != 'TRUE', reason="Require to bring up cache s…
56 if "SESSION_ID" in os.environ:
57 session_id = int(os.environ['SESSION_ID'])
75 @pytest.mark.skipif(os.environ.get('RUN_CACHE_TEST') != 'TRUE', reason="Require to bring up cache s…
90 if "SESSION_ID" in os.environ:
91 session_id = int(os.environ['SESSION_ID'])
109 @pytest.mark.skipif(os.environ.get('RUN_CACHE_TEST') != 'TRUE', reason="Require to bring up cache s…
115 if "SESSION_ID" in os.environ:
116 session_id = int(os.environ['SESSION_ID'])
139 @pytest.mark.skipif(os.environ.get('RUN_CACHE_TEST') != 'TRUE', reason="Require to bring up cache s…
[all …]
Dtest_cache_nomap.py52 @pytest.mark.skipif(os.environ.get('RUN_CACHE_TEST') != 'TRUE', reason="Require to bring up cache s…
59 if "SESSION_ID" in os.environ:
60 session_id = int(os.environ['SESSION_ID'])
86 @pytest.mark.skipif(os.environ.get('RUN_CACHE_TEST') != 'TRUE', reason="Require to bring up cache s…
93 if "SESSION_ID" in os.environ:
94 session_id = int(os.environ['SESSION_ID'])
122 @pytest.mark.skipif(os.environ.get('RUN_CACHE_TEST') != 'TRUE', reason="Require to bring up cache s…
137 if "SESSION_ID" in os.environ:
138 session_id = int(os.environ['SESSION_ID'])
168 @pytest.mark.skipif(os.environ.get('RUN_CACHE_TEST') != 'TRUE', reason="Require to bring up cache s…
[all …]
/third_party/toybox/lib/
Denv.c6 extern char **environ;
16 for (ev = environ; *ev; ev++) bytes += sizeof(char *) + strlen(*ev) + 1; in environ_bytes()
26 *environ = 0; in xclearenv()
40 while (environ[toys.envc++]); in xsetenv()
42 environ, toys.envc*sizeof(char *)); in xsetenv()
43 environ = (void *)new; in xsetenv()
57 for (i = 0; environ[i]; i++) { in xsetenv()
59 if (!memcmp(name, environ[i], len) && environ[i][len]=='=') { in xsetenv()
60 if (i>=envc) free(environ[i]); in xsetenv()
64 for (; new ? i<envc : !!environ[i]; i++) environ[i] = environ[i+1]; in xsetenv()
[all …]
/third_party/python/Lib/distutils/
Dsysconfig.py132 elif n in os.environ:
134 item = os.environ[n]
223 if 'CC' in os.environ:
224 newcc = os.environ['CC']
226 and 'LDSHARED' not in os.environ
232 if 'CXX' in os.environ:
233 cxx = os.environ['CXX']
234 if 'LDSHARED' in os.environ:
235 ldshared = os.environ['LDSHARED']
236 if 'CPP' in os.environ:
[all …]
/third_party/cef/tools/
Dgclient_hook.py39 if platform == 'linux' and 'CEF_INSTALL_SYSROOT' in os.environ:
40 for arch in os.environ['CEF_INSTALL_SYSROOT'].split(','):
56 if not 'DEPOT_TOOLS_WIN_TOOLCHAIN' in os.environ:
57 os.environ['DEPOT_TOOLS_WIN_TOOLCHAIN'] = '0'
115 if bool(int(os.environ.get('WIN_CUSTOM_TOOLCHAIN', '0'))):
124 if not var in os.environ.keys():
128 gn_args['visual_studio_path'] = os.environ['GYP_MSVS_OVERRIDE_PATH']
129 gn_args['visual_studio_version'] = os.environ['GYP_MSVS_VERSION']
130 gn_args['visual_studio_runtime_dirs'] = os.environ['VS_CRT_ROOT']
131 gn_args['windows_sdk_path'] = os.environ['SDK_ROOT']
[all …]
Dgn_args.py128 flags = os.environ.get(env_name, [])
405 assert os.environ.get('DEPOT_TOOLS_WIN_TOOLCHAIN', '') == '0', \
408 msvs_path = os.environ.get('GYP_MSVS_OVERRIDE_PATH', '')
412 msvs_version = os.environ.get('GYP_MSVS_VERSION', '')
416 assert os.environ.get('CEF_VCVARS', '') == 'none', \
429 if 'INCLUDE' in os.environ:
430 del os.environ['INCLUDE']
431 if 'LIB' in os.environ:
432 del os.environ['LIB']
433 if 'LIBPATH' in os.environ:
[all …]
/third_party/musl/libc-test/src/functional/
Denv.c10 extern char **environ;
17 if (!environ) in main()
19 if (clearenv() || (environ && *environ)) in main()
23 if (strcmp(environ[0],"TEST=1") != 0) in main()
24 t_error("putenv failed: environ[0]: %s, wanted \"TEST=1\"\n", environ[0]); in main()
25 if ((s=environ[1])) in main()
33 if ((s=*environ)) in main()
42 if (strcmp(environ[0], "TEST=2") != 0) in main()
43 t_error("setenv failed: environ[0]: %s, wanted \"TEST=2\"\n", environ[0]); in main()
/third_party/googletest/googlemock/test/
Dgmock_leak_test.py41 environ = gmock_test_utils.environ variable
58 env=environ).exit_code)
62 env=environ).exit_code)
69 env=environ).exit_code)
74 env=environ).exit_code)
81 env=environ).exit_code)
86 env=environ).exit_code)
93 env=environ).exit_code)
100 env=environ).exit_code)
/third_party/boost/tools/build/test/
Dspace_in_path.py27 oldtmp = os.environ["TMP"]
31 oldtmpdir = os.environ["TMPDIR"]
34 os.environ["TMP"] = tmpdir; # Windows
35 os.environ["TMPDIR"] = tmpdir; # *nix
43 os.environ["TMP"] = oldtmp
45 del os.environ["TMP"]
47 os.environ["TMPDIR"] = oldtmpdir
49 del os.environ["TMPDIR"]
Dcollect_debug_info.py65 os.environ.get(name)))
78 return "%s: %s" % (name, name in os.environ)
87 result = os.environ[name]
98 return "%s: %r" % (name, os.environ.get(name))
129 os.environ[name] = value
164 os.environ[name] = value
177 os.environ[name] = value
179 del os.environ[name]
190 os.environ[name] = value
192 os.environ.pop(name)
[all …]
/third_party/python/Lib/test/
Dtest_cgi.py104 def gen_result(data, environ): argument
108 form = cgi.FieldStorage(fp=fake_stdin, environ=environ, encoding=encoding)
169 environ={"REQUEST_METHOD":"PUT"})
183 fs = cgi.FieldStorage(environ=env)
214 fs = cgi.FieldStorage(separator=';', environ=env)
268 fs = cgi.FieldStorage(fp=f, environ=env)
283 fs = cgi.FieldStorage(fp, environ=env, encoding="latin-1")
302 fs = cgi.FieldStorage(fp, environ=env, encoding="latin-1")
320 fs = cgi.FieldStorage(fp, environ=env,encoding=encoding)
340 environ = {
[all …]
/third_party/python/Lib/distutils/tests/
Dtest_sysconfig.py117 os.environ['AR'] = 'env_ar'
118 os.environ['CC'] = 'env_cc'
119 os.environ['CPP'] = 'env_cpp'
120 os.environ['CXX'] = 'env_cxx --env-cxx-flags'
121 os.environ['LDSHARED'] = 'env_ldshared'
122 os.environ['LDFLAGS'] = '--env-ldflags'
123 os.environ['ARFLAGS'] = '--env-arflags'
124 os.environ['CFLAGS'] = '--env-cflags'
125 os.environ['CPPFLAGS'] = '--env-cppflags'
146 del os.environ['AR']
[all …]
/third_party/python/Lib/
Dcgi.py121 def parse(fp=None, environ=os.environ, keep_blank_values=0, argument
159 if not 'REQUEST_METHOD' in environ:
160 environ['REQUEST_METHOD'] = 'GET' # For testing stand-alone
161 if environ['REQUEST_METHOD'] == 'POST':
162 ctype, pdict = parse_header(environ['CONTENT_TYPE'])
166 clength = int(environ['CONTENT_LENGTH'])
172 if 'QUERY_STRING' in environ:
174 qs = qs + environ['QUERY_STRING']
178 environ['QUERY_STRING'] = qs # XXX Shouldn't, really
179 elif 'QUERY_STRING' in environ:
[all …]
/third_party/googletest/googletest/test/
Dgtest_test_utils.py59 environ = os.environ.copy() variable
66 environ[env_var] = value
67 elif env_var in environ:
68 del environ[env_var]
95 if flag.upper() in os.environ:
96 _flag_map[flag] = os.environ[flag.upper()]
263 old_environ = os.environ.copy()
264 _ReplaceEnvDict(os.environ, env)
282 _ReplaceEnvDict(os.environ, old_environ)
309 if GTEST_OUTPUT_VAR_NAME in os.environ:
[all …]
Dgoogletest-filter-unittest.py61 os.environ['EMPTY_VAR'] = ''
75 os.environ['UNSET_VAR'] = 'X'
76 del os.environ['UNSET_VAR']
171 environ = os.environ.copy() variable
178 environ[env_var] = value
179 elif env_var in environ:
180 del environ[env_var]
187 env=environ).output
193 p = gtest_test_utils.Subprocess([COMMAND] + (args or []), env=environ)
212 original_env = environ.copy()
[all …]
/third_party/cef/patch/patches/
Drunhooks.patch6 del os.environ['LIB']
7 if 'LIBPATH' in os.environ:
8 del os.environ['LIBPATH']
11 os.environ['GYP_MSVS_OVERRIDE_PATH'],
20 + for k in sorted(os.environ.keys()):
21 + variables.append('%s=%s' % (str(k), str(os.environ[k])))
34 os.environ['PATH'] = runtime_path + os.path.pathsep + os.environ['PATH']
37 if not 'GYP_MSVS_OVERRIDE_PATH' in os.environ:
39 os.environ['GYP_MSVS_OVERRIDE_PATH'] = DetectVisualStudioPath()
54 + if 'GYP_MSVS_VERSION' in os.environ:
[all …]
/third_party/python/Mac/IDLE/IDLE.app/Contents/MacOS/
DIDLE12 os.environ["PYTHONPATH"] = resdir
14 os.environ["PYTHONHOME"] = resdir
19 os.environ["PYTHONPATH"] = resdir + pypath
20 os.environ["PYTHONEXECUTABLE"] = executable
21 os.environ["DYLD_LIBRARY_PATH"] = libdir
22 os.environ["DYLD_FRAMEWORK_PATH"] = libdir
23 os.execve(executable, sys.argv, os.environ)
/third_party/node/deps/npm/node_modules/node-gyp/gyp/pylib/gyp/
Dmac_tool.py161 for key in os.environ:
165 evalue = os.environ[key]
175 evalue = IDENT_RE.sub('_', os.environ[key])
179 evalue = IDENT_RE.sub('-', os.environ[key])
240 env = os.environ.copy()
313 is_iphone_target = 'IPHONEOS_DEPLOYMENT_TARGET' in os.environ
315 platform = os.environ['CONFIGURATION'].split('-')[-1]
321 os.environ['IPHONEOS_DEPLOYMENT_TARGET'], '--compile',
322 os.path.abspath(os.environ['CONTENTS_FOLDER_PATH']),
327 '--minimum-deployment-target', os.environ['MACOSX_DEPLOYMENT_TARGET'],
[all …]

12345678910>>...25