Home
last modified time | relevance | path

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

12345

/external/python/cpython2/Lib/test/
Dtest_cmd_line_script.py70 def _check_script(self, script_name, expected_file, argument
73 run_args = cmd_line_switches + (script_name,)
76 print 'Output from test script %r:' % script_name
91 def _check_import_error(self, script_name, expected_msg, argument
93 run_args = cmd_line_switches + (script_name,)
96 print 'Output from test script %r:' % script_name
103 script_name = _make_test_script(script_dir, 'script')
104 self._check_script(script_name, script_name, script_name, None)
108 script_name = _make_test_script(script_dir, 'script')
109 compiled_name = compile_script(script_name)
[all …]
Dtest_runpy.py338 def _check_script(self, script_name, expected_name, expected_file, argument
340 result = run_path(script_name)
347 def _check_import_error(self, script_name, msg): argument
349 self.assertRaisesRegexp(ImportError, msg, run_path, script_name)
354 script_name = self._make_test_script(script_dir, mod_name)
355 self._check_script(script_name, "<run_path>", script_name,
356 script_name, None)
361 script_name = self._make_test_script(script_dir, mod_name)
362 compiled_name = compile_script(script_name)
363 os.remove(script_name)
[all …]
Dtest_zipimport_support.py116 script_name = make_script(d, 'test_zipped_doctest',
119 script_name)
129 os.remove(script_name)
205 script_name = make_script(d, 'script', test_src)
206 exit_code, data = run_python(script_name)
207 expected = pattern % (script_name, "__main__.Test")
214 script_name, '__main__.py')
232 script_name = make_script(d, 'script', test_src)
233 p = spawn_python(script_name)
236 self.assertIn(script_name, data)
[all …]
/external/python/cpython3/Lib/test/
Dtest_multiprocessing_main_handling.py153 def _check_output(self, script_name, exit_code, out, err): argument
155 print("Output from test script %r:" % script_name)
162 def _check_script(self, script_name, *cmd_line_switches): argument
165 run_args = cmd_line_switches + (script_name, self.start_method)
167 self._check_output(script_name, rc, out, err)
171 script_name = _make_test_script(script_dir, 'script')
172 self._check_script(script_name)
176 script_name = _make_test_script(script_dir, 'script',
178 self._check_script(script_name)
187 script_name = _make_test_script(script_dir, 'ipython',
[all …]
Dtest_cmd_line_script.py91 def _check_output(self, script_name, exit_code, data, argument
96 print("Output from test script %r:" % script_name)
218 script_name = _make_test_script(script_dir, 'script')
219 self._check_script(script_name, script_name, script_name,
225 script_name = _make_test_script(script_dir, 'script')
226 py_compile.compile(script_name, doraise=True)
227 os.remove(script_name)
228 pyc_file = support.make_legacy_pyc(script_name)
235 script_name = _make_test_script(script_dir, '__main__')
236 self._check_script(script_dir, script_name, script_dir,
[all …]
Dtest_runpy.py601 def _check_script(self, script_name, expected_name, expected_file, argument
606 return run_path(script_name, init_globals)
635 return run_path(script_name, init_globals, run_name)
646 def _check_import_error(self, script_name, msg): argument
648 self.assertRaisesRegex(ImportError, msg, run_path, script_name)
653 script_name = self._make_test_script(script_dir, mod_name)
654 self._check_script(script_name, "<run_path>", script_name,
655 script_name, expect_spec=False)
660 script_name = self._make_test_script(script_dir, mod_name,
662 self._check_script(script_name, "<run_path>", script_name,
[all …]
Dtest_zipimport_support.py121 script_name = make_script(d, 'test_zipped_doctest',
124 script_name)
134 os.remove(script_name)
198 script_name = make_script(d, 'script', test_src)
199 rc, out, err = assert_python_ok(script_name)
200 expected = pattern % (script_name, "__main__.Test")
207 script_name, '__main__.py')
225 script_name = make_script(d, 'script', test_src)
226 p = spawn_python(script_name)
230 self.assertIn(os.path.normcase(script_name.encode('utf-8')), data)
[all …]
/external/python/cpython2/Lib/test/support/
Dscript_helper.py108 script_name = os.path.join(script_dir, script_filename)
109 script_file = open(script_name, 'w')
112 return script_name
114 def compile_script(script_name): argument
115 py_compile.compile(script_name, doraise=True)
117 compiled_name = script_name + 'c'
119 compiled_name = script_name + 'o'
122 def make_zip_script(zip_dir, zip_basename, script_name, name_in_zip=None): argument
127 name_in_zip = os.path.basename(script_name)
128 zip_file.write(script_name, name_in_zip)
[all …]
/external/python/cpython3/Lib/test/support/
Dscript_helper.py206 script_name = os.path.join(script_dir, script_filename)
208 script_file = open(script_name, 'w', encoding='utf-8')
212 return script_name
214 def make_zip_script(zip_dir, zip_basename, script_name, name_in_zip=None): argument
219 parts = script_name.split(os.sep)
221 legacy_pyc = make_legacy_pyc(source_from_cache(script_name))
223 script_name = legacy_pyc
225 name_in_zip = os.path.basename(script_name)
226 zip_file.write(script_name, name_in_zip)
245 script_name = make_script(zip_dir, script_basename, source)
[all …]
/external/python/cpython2/Lib/wsgiref/
Dutil.py98 script_name = environ.get('SCRIPT_NAME','')
99 script_name = posixpath.normpath(script_name+'/'+name)
100 if script_name.endswith('/'):
101 script_name = script_name[:-1]
102 if not name and not script_name.endswith('/'):
103 script_name += '/'
105 environ['SCRIPT_NAME'] = script_name
/external/python/cpython3/Lib/wsgiref/
Dutil.py98 script_name = environ.get('SCRIPT_NAME','')
99 script_name = posixpath.normpath(script_name+'/'+name)
100 if script_name.endswith('/'):
101 script_name = script_name[:-1]
102 if not name and not script_name.endswith('/'):
103 script_name += '/'
105 environ['SCRIPT_NAME'] = script_name
/external/python/cpython2/Lib/distutils/
Dcore.py35 def gen_usage(script_name): argument
36 script = os.path.basename(script_name)
139 raise SystemExit, gen_usage(dist.script_name) + "\nerror: %s" % msg
171 def run_setup(script_name, script_args=None, stop_after="run"): argument
209 g = {'__file__': script_name}
213 sys.argv[0] = script_name
216 f = open(script_name)
235 script_name
Dutil.py383 (script_fd, script_name) = mkstemp(".py")
386 (script_fd, script_name) = None, mktemp(".py")
387 log.info("writing byte-compilation script '%s'", script_name)
392 script = open(script_name, "w")
423 cmd = [sys.executable, script_name]
429 execute(os.remove, (script_name,), "removing %s" % script_name,
/external/python/cpython3/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.py370 (script_fd, script_name) = mkstemp(".py")
373 (script_fd, script_name) = None, mktemp(".py")
374 log.info("writing byte-compilation script '%s'", script_name)
379 script = open(script_name, "w")
412 cmd.append(script_name)
414 execute(os.remove, (script_name,), "removing %s" % script_name,
/external/toolchain-utils/
Dremote_test.py50 version_dir_path, script_name = misc.GetRoot(sys.argv[0])
68 '/tmp/' + script_name,
75 '/tmp/' + script_name + '1',
83 '/tmp/' + script_name,
90 '/tmp/' + script_name,
91 '/tmp/' + script_name,
/external/python/setuptools/setuptools/
Dlaunch.py19 script_name = sys.argv[1]
21 __file__=script_name,
28 script = open_(script_name).read()
30 code = compile(norm_script, script_name, 'exec')
Dscript.tmpl1 # EASY-INSTALL-SCRIPT: %(spec)r,%(script_name)r
3 __import__('pkg_resources').run_script(%(spec)r, %(script_name)r)
/external/v8/src/ic/
Dic-stats.cc63 String* script_name = String::cast(script_name_raw); in GetOrCacheScriptName() local
65 script_name->ToCString(DISALLOW_NULLS, ROBUST_STRING_TRAVERSAL) in GetOrCacheScriptName()
93 script_name(nullptr), in ICInfo()
105 script_name = nullptr; in Reset()
126 if (script_name) value->SetString("scriptName", script_name); in AppendToTracedValue()
/external/python/setuptools/setuptools/tests/
Dtest_sdist.py125 dist.script_name = 'setup.py'
151 dist.script_name = 'setup.PY'
170 dist.script_name = 'setup.py'
204 dist.script_name = 'setup.py'
242 dist.script_name = 'setup.py'
273 dist.script_name = 'setup.py'
306 dist.script_name = 'setup.py'
338 dist.script_name = 'setup.py'
372 dist.script_name = 'setup.py'
/external/sqlite/
DUPDATE-SOURCE.bash26 script_name="$(basename "$0")"
32 echo "$script_name: $*"
52 Usage: $script_name SQLITE-SOURCE_TGZ
/external/python/cpython3/Lib/
Drunpy.py64 pkg_name=None, script_name=None): argument
70 fname = script_name
90 pkg_name=None, script_name=None): argument
92 fname = script_name if mod_spec is None else mod_spec.origin
96 mod_name, mod_spec, pkg_name, script_name)
263 pkg_name=pkg_name, script_name=fname)
/external/fonttools/Tests/
Dunicodedata_test.py174 assert unicodedata.script_name("Latn") == "Latin"
175 assert unicodedata.script_name("Zyyy") == "Common"
176 assert unicodedata.script_name("Zzzz") == "Unknown"
178 assert unicodedata.script_name("Egyp") == "Egyptian Hieroglyphs"
181 unicodedata.script_name("QQQQ")
182 assert unicodedata.script_name("QQQQ", default="Unknown")
/external/python/setuptools/setuptools/command/
Dinstall_scripts.py51 def write_script(self, script_name, contents, mode="t", *ignored): argument
55 log.info("Installing %s script to %s", script_name, self.install_dir)
56 target = os.path.join(self.install_dir, script_name)
/external/tensorflow/tensorflow/python/tools/
Dprint_selective_registration_header_test.py86 _, self.script_name = os.path.split(sys.argv[0])
155 '// This file was autogenerated by %s' % self.script_name,
217 #endif''' % self.script_name

12345