Home
last modified time | relevance | path

Searched refs:script_name (Results 1 – 25 of 82) sorted by relevance

1234

/third_party/python/Lib/test/
Dtest_cmd_line_script.py93 def _check_output(self, script_name, exit_code, data, argument
98 print("Output from test script %r:" % script_name)
220 script_name = _make_test_script(script_dir, 'script')
221 self._check_script(script_name, script_name, script_name,
232 script_name = _make_test_script(script_dir, 'script')
233 relative_name = os.path.basename(script_name)
234 self._check_script(relative_name, script_name, relative_name,
240 script_name = _make_test_script(script_dir, 'script')
241 py_compile.compile(script_name, doraise=True)
242 os.remove(script_name)
[all …]
Dtest_multiprocessing_main_handling.py155 def _check_output(self, script_name, exit_code, out, err): argument
157 print("Output from test script %r:" % script_name)
164 def _check_script(self, script_name, *cmd_line_switches): argument
167 run_args = cmd_line_switches + (script_name, self.start_method)
169 self._check_output(script_name, rc, out, err)
173 script_name = _make_test_script(script_dir, 'script')
174 self._check_script(script_name)
178 script_name = _make_test_script(script_dir, 'script',
180 self._check_script(script_name)
189 script_name = _make_test_script(script_dir, 'ipython',
[all …]
Dtest_runpy.py603 def _check_script(self, script_name, expected_name, expected_file, argument
608 return run_path(script_name, init_globals)
637 return run_path(script_name, init_globals, run_name)
648 def _check_import_error(self, script_name, msg): argument
650 self.assertRaisesRegex(ImportError, msg, run_path, script_name)
655 script_name = self._make_test_script(script_dir, mod_name)
656 self._check_script(script_name, "<run_path>", script_name,
657 script_name, expect_spec=False)
662 script_name = pathlib.Path(self._make_test_script(script_dir,
664 self._check_script(script_name, "<run_path>", script_name,
[all …]
Dtest_zipimport_support.py122 script_name = make_script(d, 'test_zipped_doctest',
125 script_name)
133 os.remove(script_name)
197 script_name = make_script(d, 'script', test_src)
198 rc, out, err = assert_python_ok(script_name)
199 expected = pattern % (script_name, "__main__.Test")
206 script_name, '__main__.py')
224 script_name = make_script(d, 'script', test_src)
225 p = spawn_python(script_name)
229 self.assertIn(os.path.normcase(script_name.encode('utf-8')), data)
[all …]
/third_party/python/Lib/test/support/
Dscript_helper.py213 script_name = os.path.join(script_dir, script_filename)
215 with open(script_name, 'w', encoding='utf-8') as script_file:
218 return script_name
221 def make_zip_script(zip_dir, zip_basename, script_name, name_in_zip=None): argument
226 parts = script_name.split(os.sep)
228 legacy_pyc = make_legacy_pyc(source_from_cache(script_name))
230 script_name = legacy_pyc
232 name_in_zip = os.path.basename(script_name)
233 zip_file.write(script_name, name_in_zip)
252 script_name = make_script(zip_dir, script_basename, source)
[all …]
/third_party/python/Lib/wsgiref/
Dutil.py105 script_name = environ.get('SCRIPT_NAME','')
106 script_name = posixpath.normpath(script_name+'/'+name)
107 if script_name.endswith('/'):
108 script_name = script_name[:-1]
109 if not name and not script_name.endswith('/'):
110 script_name += '/'
112 environ['SCRIPT_NAME'] = script_name
/third_party/python/Lib/distutils/
Dcore.py32 def gen_usage (script_name): argument
33 script = os.path.basename(script_name)
136 raise SystemExit(gen_usage(dist.script_name) + "\nerror: %s" % msg)
170 def run_setup (script_name, script_args=None, stop_after="run"): argument
208 g = {'__file__': script_name}
211 sys.argv[0] = script_name
214 with open(script_name, 'rb') as f:
227 script_name)
Dutil.py384 (script_fd, script_name) = mkstemp(".py")
387 (script_fd, script_name) = None, mktemp(".py")
388 log.info("writing byte-compilation script '%s'", script_name)
393 script = open(script_name, "w")
427 cmd.append(script_name)
429 execute(os.remove, (script_name,), "removing %s" % script_name,
/third_party/pcre2/pcre2/maint/
DGenerateTest26.py126 script_name = script_names[idx]
128 if script_name == "Unknown":
134 write_both("/^\\p{sc=%s}/utf\n" % script_name)
150 write_both("/^\\p{%s}/utf\n" % script_name)
164 write_both("/^\\p{%s}/utf\n" % script_name)
169 write_both("/^\\p{sc=%s}/utf\n" % script_name)
174 print("External character has not found for %s" % script_name)
180 write_both("/^\\p{%s}/utf\n" % script_name)
DGenerateCommon.py300 script_name = sys.argv[0]
301 i = script_name.rfind('/')
303 script_name = script_name[i+1:]
321 "a new version of this code.\n\n" % script_name)
/third_party/node/deps/v8/src/ic/
Dic-stats.cc64 String script_name = String::cast(script_name_raw); in GetOrCacheScriptName() local
66 script_name.ToCString(DISALLOW_NULLS, ROBUST_STRING_TRAVERSAL) in GetOrCacheScriptName()
92 script_name(nullptr), in ICInfo()
105 script_name = nullptr; in Reset()
127 if (script_name) value->SetString("scriptName", script_name); in AppendToTracedValue()
/third_party/python/Lib/
Drunpy.py65 pkg_name=None, script_name=None): argument
71 fname = script_name
91 pkg_name=None, script_name=None): argument
93 fname = script_name if mod_spec is None else mod_spec.origin
97 mod_name, mod_spec, pkg_name, script_name)
270 pkg_name=pkg_name, script_name=fname)
/third_party/skia/third_party/externals/angle2/scripts/
Dgen_proc_table.py191 script_name=sys.argv[0],
234 script_name=sys.argv[0],
269 script_name=sys.argv[0],
280 script_name=sys.argv[0], data_source_name="cl.xml", symbol_maps="\n".join(symbol_maps))
Dgenerate_entry_points.py1958 script_name=os.path.basename(sys.argv[0]),
1976 script_name=os.path.basename(sys.argv[0]),
2001 script_name=os.path.basename(sys.argv[0]),
2024 script_name=os.path.basename(sys.argv[0]),
2038 script_name=os.path.basename(sys.argv[0]),
2058 script_name=os.path.basename(sys.argv[0]),
2075 script_name=os.path.basename(sys.argv[0]),
2230 script_name=os.path.basename(sys.argv[0]),
2292 script_name=os.path.basename(sys.argv[0]),
2382 script_name=os.path.basename(sys.argv[0]),
[all …]
Dgen_gl_enum_utils.py189 script_name=os.path.basename(sys.argv[0]),
201 script_name=os.path.basename(sys.argv[0]),
/third_party/node/src/
Dinspector_io.cc29 std::string ScriptPath(uv_loop_t* loop, const std::string& script_name) { in ScriptPath() argument
32 if (!script_name.empty()) { in ScriptPath()
35 if (0 == uv_fs_realpath(loop, &req, script_name.c_str(), nullptr)) { in ScriptPath()
214 const std::string& script_name);
332 const std::string& script_name) in InspectorIoDelegate() argument
334 script_name_(script_name), script_path_(script_path), in InspectorIoDelegate()
/third_party/node/deps/v8/src/diagnostics/
Dsystem-jit-win.cc86 v8::Local<v8::Value> script_name = script->GetScriptName(); in EventHandler() local
88 if (script_name->IsString()) { in EventHandler()
89 auto v8str_name = script_name.As<v8::String>(); in EventHandler()
/third_party/node/deps/v8/src/codegen/
Dscript-details.h20 Handle<Object> script_name,
24 name_obj(script_name),
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/gl/
Dgenerate_gl_dispatch_table.py408 script_name=os.path.basename(sys.argv[0]),
440 script_name=os.path.basename(sys.argv[0]),
486 script_name=os.path.basename(sys.argv[0]),
495 script_name=os.path.basename(sys.argv[0]),
/third_party/python/Lib/distutils/tests/
Dtest_build_py.py37 dist.script_name = os.path.join(sources, "setup.py")
82 dist.script_name = os.path.join(sources, "setup.py")
148 dist.script_name = os.path.join(sources, "setup.py")
Dtest_bdist_rpm.py67 dist.script_name = 'setup.py'
111 dist.script_name = 'setup.py'
/third_party/node/deps/v8/src/third_party/vtune/
Dvtune-jit.cc204 Local<String> script_name = script->GetScriptName().As<String>(); in event_handler() local
206 new char[script_name->Utf8Length(event->isolate) + 1]); in event_handler()
207 script_name->WriteUtf8(event->isolate, temp_file_name.get()); in event_handler()
/third_party/node/deps/v8/src/logging/
Dlog.cc236 Handle<Name> script_name) { in CodeCreateEvent() argument
241 name_buffer_->AppendName(*script_name); in CodeCreateEvent()
248 Handle<Name> script_name, int line, in CodeCreateEvent() argument
255 if (script_name->IsString()) { in CodeCreateEvent()
256 name_buffer_->AppendString(String::cast(*script_name)); in CodeCreateEvent()
259 name_buffer_->AppendHex(Name::cast(*script_name).hash()); in CodeCreateEvent()
430 code_event.script_name = isolate_->factory()->empty_string(); in CodeCreateEvent()
450 code_event.script_name = isolate_->factory()->empty_string(); in CodeCreateEvent()
470 code_event.script_name = isolate_->factory()->empty_string(); in CodeCreateEvent()
494 code_event.script_name = source_string; in CodeCreateEvent()
[all …]
Dlog.h177 Handle<Name> script_name) override;
180 Handle<Name> script_name, int line, int column) override;
416 Handle<Name> script_name) override;
419 Handle<Name> script_name, int line, int column) override;
465 Handle<String> script_name; member
/third_party/node/deps/v8/src/profiler/
Dprofiler-listener.h44 Handle<Name> script_name) override;
47 Handle<Name> script_name, int line, int column) override;

1234