/external/python/setuptools/setuptools/ |
launch.py | 19 script_name = sys.argv[1] 21 __file__=script_name, 28 script = open_(script_name).read() 30 code = compile(norm_script, script_name, 'exec')
|
/development/scripts/ |
bash_util.bash | 15 script_name="${0##*/}" 20 echo "$script_name: ERROR: $@" 1>&2 26 echo "$script_name: WARN: $@" 1>&2 31 echo "$script_name: $@" 1>&2
|
runahat | 23 $script_name: Get heapdump from a process and open in ahat. 25 Usage: $script_name PID_OR_PROCESS_NAME
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/ |
test_cmd_line_script.py | 66 def _check_script(self, script_name, expected_file,
69 run_args = cmd_line_switches + (script_name,)
72 print 'Output from test script %r:' % script_name
87 def _check_import_error(self, script_name, expected_msg,
89 run_args = cmd_line_switches + (script_name,)
92 print 'Output from test script %r:' % script_name
99 script_name = _make_test_script(script_dir, 'script')
100 self._check_script(script_name, script_name, script_name, None) [all...] |
script_helper.py | 102 script_name = os.path.join(script_dir, script_filename)
103 script_file = open(script_name, 'w')
106 return script_name
108 def compile_script(script_name):
109 py_compile.compile(script_name, doraise=True)
111 compiled_name = script_name + 'c'
113 compiled_name = script_name + 'o'
116 def make_zip_script(zip_dir, zip_basename, script_name, name_in_zip=None):
121 name_in_zip = os.path.basename(script_name)
122 zip_file.write(script_name, name_in_zip) [all...] |
test_zipimport_support.py | 106 script_name = make_script(d, 'test_zipped_doctest',
109 script_name)
118 os.remove(script_name)
193 script_name = make_script(d, 'script', test_src)
194 exit_code, data = run_python(script_name)
195 expected = pattern % (script_name, "__main__.Test")
202 script_name, '__main__.py')
220 script_name = make_script(d, 'script', test_src)
221 p = spawn_python(script_name)
224 self.assertIn(script_name, data) [all...] |
test_runpy.py | 311 def _check_script(self, script_name, expected_name, expected_file,
313 result = run_path(script_name)
320 def _check_import_error(self, script_name, msg):
322 self.assertRaisesRegexp(ImportError, msg, run_path, script_name)
327 script_name = self._make_test_script(script_dir, mod_name)
328 self._check_script(script_name, "<run_path>", script_name,
329 script_name, None)
334 script_name = self._make_test_script(script_dir, mod_name)
335 compiled_name = compile_script(script_name)
[all...] |
/external/python/cpython2/Lib/test/ |
test_cmd_line_script.py | 70 def _check_script(self, script_name, expected_file, 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, 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 [all...] |
test_zipimport_support.py | 116 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...] |
test_runpy.py | 338 def _check_script(self, script_name, expected_name, expected_file, 340 result = run_path(script_name) 347 def _check_import_error(self, script_name, msg): 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) [all...] |
/external/sqlite/ |
UPDATE-SOURCE.bash | 26 script_name="$(basename "$0")" 32 echo "$script_name: $*" 52 Usage: $script_name SQLITE-SOURCE_TGZ
|
/external/python/cpython2/Lib/distutils/ |
core.py | 35 def gen_usage(script_name): 36 script = os.path.basename(script_name) 45 setup_keywords = ('distclass', 'script_name', 'script_args', 'options', 103 if 'script_name' not in attrs: 104 attrs['script_name'] = os.path.basename(sys.argv[0]) 139 raise SystemExit, gen_usage(dist.script_name) + "\nerror: %s" % msg 171 def run_setup(script_name, script_args=None, stop_after="run"): 178 'script_name' is a file that will be run with 'execfile()'; 209 g = {'__file__': script_name} 213 sys.argv[0] = script_name [all...] |
/external/python/cpython3/Lib/distutils/ |
core.py | 32 def gen_usage (script_name): 33 script = os.path.basename(script_name) 42 setup_keywords = ('distclass', 'script_name', 'script_args', 'options', 100 if 'script_name' not in attrs: 101 attrs['script_name'] = os.path.basename(sys.argv[0]) 136 raise SystemExit(gen_usage(dist.script_name) + "\nerror: %s" % msg) 170 def run_setup (script_name, script_args=None, stop_after="run"): 177 'script_name' is a file that will be read and run with 'exec()'; 208 g = {'__file__': script_name} 211 sys.argv[0] = script_name [all...] |
/external/python/cpython2/Lib/test/support/ |
script_helper.py | 108 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): 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): 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/ |
script_helper.py | 206 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): 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/cpython3/Lib/test/ |
test_cmd_line_script.py | 91 def _check_output(self, script_name, exit_code, data, 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) [all...] |
test_zipimport_support.py | 121 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...] |
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/wsgiref/ |
util.py | 60 url += quote(environ.get('SCRIPT_NAME') or '/')
68 if not environ.get('SCRIPT_NAME'):
77 """Shift a name from PATH_INFO to SCRIPT_NAME, returning it
81 the original PATH_INFO or SCRIPT_NAME.
84 '/' to SCRIPT_NAME, even though empty path segments are normally ignored,
85 and SCRIPT_NAME doesn't normally end in a '/'. This is intentional
98 script_name = environ.get('SCRIPT_NAME','')
99 script_name = posixpath.normpath(script_name+'/'+name) [all...] |
/external/python/cpython2/Lib/wsgiref/ |
util.py | 60 url += quote(environ.get('SCRIPT_NAME') or '/') 68 if not environ.get('SCRIPT_NAME'): 77 """Shift a name from PATH_INFO to SCRIPT_NAME, returning it 81 the original PATH_INFO or SCRIPT_NAME. 84 '/' to SCRIPT_NAME, even though empty path segments are normally ignored, 85 and SCRIPT_NAME doesn't normally end in a '/'. This is intentional 98 script_name = environ.get('SCRIPT_NAME','') 99 script_name = posixpath.normpath(script_name+'/'+name [all...] |
/external/python/cpython3/Lib/wsgiref/ |
util.py | 60 url += quote(environ.get('SCRIPT_NAME') or '/', encoding='latin1') 68 if not environ.get('SCRIPT_NAME'): 77 """Shift a name from PATH_INFO to SCRIPT_NAME, returning it 81 the original PATH_INFO or SCRIPT_NAME. 84 '/' to SCRIPT_NAME, even though empty path segments are normally ignored, 85 and SCRIPT_NAME doesn't normally end in a '/'. This is intentional 98 script_name = environ.get('SCRIPT_NAME','') 99 script_name = posixpath.normpath(script_name+'/'+name [all...] |
/external/toolchain-utils/ |
remote_test.py | 50 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,
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/distutils/ |
core.py | 36 def gen_usage(script_name):
37 script = os.path.basename(script_name)
46 setup_keywords = ('distclass', 'script_name', 'script_args', 'options',
104 if 'script_name' not in attrs:
105 attrs['script_name'] = os.path.basename(sys.argv[0])
140 raise SystemExit, gen_usage(dist.script_name) + "\nerror: %s" % msg
174 def run_setup(script_name, script_args=None, stop_after="run"):
181 'script_name' is a file that will be run with 'execfile()';
212 g = {'__file__': script_name}
216 sys.argv[0] = script_name
[all...] |
/external/python/setuptools/setuptools/tests/ |
test_build_py.py | 22 script_name='setup.py',
|
/external/v8/src/ic/ |
ic-stats.cc | 63 String* script_name = String::cast(script_name_raw); local 65 script_name->ToCString(DISALLOW_NULLS, ROBUST_STRING_TRAVERSAL) 93 script_name(nullptr), 105 script_name = nullptr; 126 if (script_name) value->SetString("scriptName", script_name);
|
/external/python/setuptools/setuptools/command/ |
install_scripts.py | 51 def write_script(self, script_name, contents, mode="t", *ignored): 55 log.info("Installing %s script to %s", script_name, self.install_dir) 56 target = os.path.join(self.install_dir, script_name)
|