/third_party/python/Lib/ |
H A D | runpy.py | 67 pkg_name=None, script_name=None): 79 if pkg_name is None: 80 pkg_name = mod_spec.parent 86 __package__ = pkg_name, 93 pkg_name=None, script_name=None): 99 mod_name, mod_spec, pkg_name, script_name) 108 pkg_name, _, _ = mod_name.rpartition(".") 109 if pkg_name: 112 __import__(pkg_name) 117 if e.name is None or (e.name != pkg_name an [all...] |
H A D | pkgutil.py | 449 pkg_name = fullname.rpartition(".")[0] 450 pkg = importlib.import_module(pkg_name)
|
/third_party/python/Lib/test/test_importlib/ |
H A D | test_main.py | 112 pkg_name = 'CherryPy' 113 fixtures.build_files(self.make_pkg(pkg_name), self.site_dir) 114 assert version(pkg_name) == '1.0' 115 assert version(pkg_name.lower()) == '1.0' 116 assert version(pkg_name.upper()) == '1.0' 167 pkg_name = self.pkg_with_non_ascii_description(self.site_dir) 168 meta = metadata(pkg_name) 172 pkg_name = self.pkg_with_non_ascii_description_egg_info(self.site_dir) 173 meta = metadata(pkg_name)
|
H A D | test_api.py | 30 pkg_name = 'pkg' 31 pkg_long_name = '{0}.__init__'.format(pkg_name) 32 name = '{0}.mod'.format(pkg_name) 40 pkg_name = 'pkg' 41 pkg_long_name = '{0}.__init__'.format(pkg_name) 43 absolute_name = '{0}.{1}'.format(pkg_name, module_name) 47 self.init.import_module(pkg_name) 48 module = self.init.import_module(relative_name, pkg_name) 63 pkg_name = 'pkg' 64 pkg_long_name = '{0}.__init__'.format(pkg_name) [all...] |
/third_party/python/Lib/test/ |
H A D | test_runpy.py | 229 pkg_name = "__runpy_pkg__" 239 sub_dir = os.path.join(sub_dir, pkg_name) 247 mod_name = (pkg_name+".")*depth + mod_base 335 pkg_name = mod_name.rpartition(".")[0] 342 "__package__": pkg_name, 352 return run_module(pkg_name, init_globals, alter_sys=alter_sys) 354 if verbose > 1: print("Running from source:", pkg_name) 362 if verbose > 1: print("Running from compiled:", pkg_name) 373 pkg_name = "__runpy_pkg__" 377 module_dir = os.path.join(module_dir, pkg_name) [all...] |
H A D | test_doctest.py | 756 pkg_name = 'doctest_empty_pkg' 758 pkg_dir = os.path.join(parent_dir, pkg_name) 762 mod = importlib.import_module(pkg_name) 764 import_helper.forget(pkg_name)
|
H A D | test_pdb.py | 2113 pkg_name = 't_pkg' 2115 os_helper.rmtree(pkg_name) 2116 modpath = pkg_name + '/' + module_name 2120 self.addCleanup(os_helper.rmtree, pkg_name)
|
H A D | test_multiprocessing_main_handling.py | 121 def _make_test_zip_pkg(zip_dir, zip_basename, pkg_name, script_basename, 123 to_return = make_zip_pkg(zip_dir, zip_basename, pkg_name, script_basename,
|
H A D | test_cmd_line_script.py | 85 def _make_test_zip_pkg(zip_dir, zip_basename, pkg_name, script_basename, 87 to_return = make_zip_pkg(zip_dir, zip_basename, pkg_name, script_basename,
|
/third_party/skia/build/fuchsia/ |
H A D | gen_package | 23 '--pkg-name', dest='pkg_name', action='store', required=True) 35 pkg_name = args.pkg_name 46 subprocess.check_call(pm_command_base + ['-n'] + [pkg_name] + ['init'])
|
H A D | update_fuchsia_sdk | 45 def DownloadAndUnzip(pkg_name, version, cipd_cache_dir, output_dir): 46 pkg_suffix = pkg_name.replace('/', '-') + ".zip" 48 cipd_cmd = "cipd pkg-fetch " + pkg_name + " -version \"" + version + "\" -out " + \
|
/third_party/rust/crates/clap/clap_derive/src/derives/ |
H A D | parser.rs | 30 let pkg_name = std::env::var("CARGO_PKG_NAME").ok().unwrap_or_default(); in derive_parser() 37 let name = Name::Assigned(quote!(#pkg_name)); in derive_parser() 53 let name = Name::Assigned(quote!(#pkg_name)); in derive_parser() 66 let name = Name::Assigned(quote!(#pkg_name)); in derive_parser()
|
/third_party/python/Lib/test/test_importlib/import_/ |
H A D | test_meta_path.py | 85 pkg_name = 'pkg' 86 mod_name = pkg_name + '.module' 89 with self.mock_modules(pkg_name+'.__init__', mod_name) as importer: 90 importer.modules[pkg_name].__path__ = path
|
/third_party/skia/buildtools/reclient_cfgs/ |
H A D | fetch_reclient_cfgs.py | 35 def CipdEnsure(pkg_name, ref, directory): 36 print('ensure %s %s in %s' % (pkg_name, ref, directory)) 40 input=('%s %s' % (pkg_name, ref)).encode('utf-8'))
|
/third_party/python/Lib/distutils/tests/ |
H A D | support.py | 92 def create_dist(self, pkg_name='foo', **kw): 103 pkg_dir = os.path.join(tmp_dir, pkg_name)
|
/third_party/python/Lib/test/support/ |
H A D | script_helper.py | 253 def make_zip_pkg(zip_dir, zip_basename, pkg_name, script_basename, 265 pkg_names = [os.sep.join([pkg_name]*i) for i in range(1, depth+1)]
|
/third_party/python/Lib/lib2to3/ |
H A D | refactor.py | 100 def get_fixers_from_package(pkg_name): 102 Return the fully qualified names for fixers in the package pkg_name. 104 return [pkg_name + "." + fix_name 105 for fix_name in get_all_fix_names(pkg_name, False)]
|
/third_party/libabigail/tools/ |
H A D | abipkgdiff.cc | 1946 string pkg_name = pkg.base_name(); in maybe_handle_kabi_whitelist_pkg() 1947 bool is_linux_kernel_package = file_is_kernel_package(pkg_name, pkg.type()); in maybe_handle_kabi_whitelist_pkg() 1960 if (!get_rpm_arch(pkg_name, rpm_arch)) in maybe_handle_kabi_whitelist_pkg() 2336 string pkg_name = package.base_name(); in create_maps_of_package_content() local 2337 bool is_linux_kernel_package = file_is_kernel_package(pkg_name, in create_maps_of_package_content() 2731 string pkg_name = first_package.base_name(); in compare_prepared_userspace_packages() local 2902 string pkg_name = pkg.base_name(); in self_compare_prepared_userspace_package() local 3014 string pkg_name = first_package.base_name(); in compare_prepared_linux_kernel_packages() local
|
/third_party/python/Lib/test/test_import/ |
H A D | __init__.py | 1214 pkg_name = "_parent_foo" 1215 self.addCleanup(unload, pkg_name) 1216 pkg_path = os.path.join(TESTFN, pkg_name)
|