/third_party/python/Lib/distutils/ |
H A D | archive_util.py | 55 def make_tarball(base_name, base_dir, compress="gzip", verbose=0, dry_run=0, 58 'base_dir'. 67 The output tar file will be named 'base_dir' + ".tar", possibly plus 109 tar.add(base_dir, filter=_set_uid_gid) 127 def make_zipfile(base_name, base_dir, verbose=0, dry_run=0): 128 """Create a zip file from all the files under 'base_dir'. 148 spawn(["zip", zipoptions, zip_filename, base_dir], 159 zip_filename, base_dir) 170 if base_dir != os.curdir: 171 path = os.path.normpath(os.path.join(base_dir, '')) [all...] |
H A D | dir_util.py | 80 def create_tree(base_dir, files, mode=0o777, verbose=1, dry_run=0): 81 """Create all the empty directories under 'base_dir' needed to put 'files' 84 'base_dir' is just the name of a directory which doesn't necessarily 86 'base_dir'. 'base_dir' + the directory portion of every file in 'files' 93 need_dir.add(os.path.join(base_dir, os.path.dirname(file)))
|
H A D | util.py | 326 prefix=None, base_dir=None, 342 source filename, and 'base_dir' is a directory name that will be 344 (or neither) of 'prefix' and 'base_dir', as you wish. 418 prefix=%r, base_dir=%r, 421 """ % (optimize, force, prefix, base_dir, verbose)) 460 if base_dir: 461 dfile = os.path.join(base_dir, dfile)
|
H A D | cmd.py | 367 def make_archive(self, base_name, format, root_dir=None, base_dir=None, 369 return archive_util.make_archive(base_name, format, root_dir, base_dir,
|
/third_party/node/deps/v8/tools/release/ |
H A D | test_mergeinfo.py | 20 base_dir = TEST_CONFIG["GIT_REPO"] variable in TestMergeInfo 24 fullCommand = ["git", "-C", self.base_dir] + git_args 38 if path.exists(self.base_dir): 39 shutil.rmtree(self.base_dir) 41 check_call(["git", "init", self.base_dir]) 44 self._execute_git(['remote', 'add', 'origin', self.base_dir]) 52 if path.exists(self.base_dir): 53 shutil.rmtree(self.base_dir) 77 return mergeinfo.get_branches_for_commit(self.base_dir, hash) 89 self.base_dir, [all...] |
/third_party/python/Lib/distutils/command/ |
H A D | sdist.py | 362 base_dir = self.distribution.get_fullname() 365 self.filelist.exclude_pattern(None, prefix=base_dir) 418 def make_release_tree(self, base_dir, files): 421 'files' are created under 'base_dir', and then we hard link or copy 427 # Create all the directories under 'base_dir' necessary to 430 self.mkpath(base_dir) 431 dir_util.create_tree(base_dir, files, dry_run=self.dry_run) 435 # corresponding location under 'base_dir', or copying each file 436 # that's out-of-date in 'base_dir'. (Usually, all files will be 437 # out-of-date, because by default we blow away 'base_dir' whe [all...] |
/third_party/python/Lib/distutils/tests/ |
H A D | test_archive_util.py | 304 base_dir = self._create_files() 306 res = make_archive(base_name, 'tar', base_dir, 'dist') 313 base_dir = self._create_files() 315 res = make_archive(base_name, 'gztar', base_dir, 'dist') 322 base_dir = self._create_files() 324 res = make_archive(base_name, 'bztar', base_dir, 'dist') 331 base_dir = self._create_files() 333 res = make_archive(base_name, 'xztar', base_dir, 'dist') 347 base_dir = self._create_files() 350 res = make_archive(base_name, 'zip', root_dir, base_dir, owne [all...] |
/third_party/lz4/tests/ |
H A D | test-lz4-abi.py | 65 base_dir = os.getcwd() + '/..' # /path/to/lz4 66 tmp_dir = base_dir + '/' + tmp_dir_name # /path/to/lz4/tests/versionsTest 68 lib_dir = base_dir + '/lib' # /path/to/lz4/lib 69 test_dir = base_dir + '/tests' 94 os.chdir(base_dir)
|
H A D | test-lz4-versions.py | 57 base_dir = os.getcwd() + '/..' # /path/to/lz4 58 tmp_dir = base_dir + '/' + tmp_dir_name # /path/to/lz4/tests/versionsTest 60 programs_dir = base_dir + '/programs' # /path/to/lz4/programs 67 shutil.copy2(base_dir + '/' + test_dat_src, tmp_dir + '/' + test_dat) 77 os.chdir(base_dir)
|
/third_party/python/Lib/ |
H A D | shutil.py | 899 def _make_tarball(base_name, base_dir, compress="gzip", verbose=0, dry_run=0, 902 'base_dir'. 957 arcname = base_dir 959 base_dir = os.path.join(root_dir, base_dir) 961 tar.add(base_dir, arcname, filter=_set_uid_gid) 969 def _make_zipfile(base_name, base_dir, verbose=0, dry_run=0, 971 """Create a zip file from all the files under 'base_dir'. 989 zip_filename, base_dir) 994 arcname = os.path.normpath(base_dir) [all...] |
/third_party/skia/infra/bots/recipes/ |
H A D | perf_pathkit.py | 44 base_dir = api.vars.build_dir 51 'src': base_dir.join('pathkit.js'), 55 'src': base_dir.join(bundle_name),
|
H A D | test_canvaskit.py | 40 base_dir = api.vars.build_dir 43 'src': base_dir.join('canvaskit.js'), 47 'src': base_dir.join('canvaskit.wasm'),
|
H A D | test_pathkit.py | 44 base_dir = api.vars.build_dir 55 'src': base_dir.join('pathkit.js'), 60 'src': base_dir.join(bundle_name),
|
/third_party/jerryscript/tools/ |
H A D | srcmerger.py | 173 def match_files(base_dir, pattern): 177 :param base_dir: directory to search in 181 for path, _, files in os.walk(base_dir): 187 def collect_files(base_dir, pattern): 192 :param base_dir: directory to search in 197 for fname in match_files(base_dir, pattern): 210 h_files = collect_files(args.base_dir, '*.h') 211 c_files = collect_files(args.base_dir, '*.c') 239 parser.add_argument('--base-dir', metavar='DIR', type=str, dest='base_dir',
|
/third_party/skia/modules/skresources/src/ |
H A D | SkResources.cpp | 176 sk_sp<FileResourceProvider> FileResourceProvider::Make(SkString base_dir, bool predecode) { in Make() argument 177 return sk_isdir(base_dir.c_str()) in Make() 178 ? sk_sp<FileResourceProvider>(new FileResourceProvider(std::move(base_dir), predecode)) in Make() 182 FileResourceProvider::FileResourceProvider(SkString base_dir, bool predecode) in FileResourceProvider() argument 183 : fDir(std::move(base_dir)) in FileResourceProvider()
|
/third_party/python/Lib/test/ |
H A D | test_shutil.py | 813 base_dir = self.mkdtemp() 814 self.addCleanup(shutil.rmtree, base_dir, ignore_errors=True) 815 src_dir = os.path.join(base_dir, "t", "pg") 1345 root_dir, base_dir = self._create_files('') 1384 def _create_files(self, base_dir='dist'): 1387 dist = os.path.join(root_dir, base_dir) 1394 if base_dir: 1396 return root_dir, base_dir 1402 root_dir, base_dir = self._create_files() 1405 tarball = make_archive(base_name, 'gztar', root_dir, base_dir) [all...] |
H A D | test_site.py | 126 site.addpackage(pth_file.base_dir, pth_file.filename, set()) 193 site.addsitedir(pth_file.base_dir, set()) 358 self.base_dir = os.path.abspath('') 359 self.file_path = os.path.join(self.base_dir, self.filename) 363 self.good_dir_path = os.path.join(self.base_dir, self.good_dirname) 364 self.bad_dir_path = os.path.join(self.base_dir, self.bad_dirname)
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/scripts/ |
H A D | update.py | 230 for base_dir, dirnames, filenames in os.walk(src): 233 relative = path.relpath(base_dir, src_base) 234 yield (path.join(base_dir, filename),
|
/third_party/gn/src/base/files/ |
H A D | file_util_posix.cc | 394 static bool CreateTemporaryDirInDirImpl(const FilePath& base_dir, in CreateTemporaryDirInDirImpl() argument 400 FilePath sub_dir = base_dir.Append(name_tmpl); in CreateTemporaryDirInDirImpl() 428 bool CreateTemporaryDirInDir(const FilePath& base_dir, in CreateTemporaryDirInDir() argument 433 return CreateTemporaryDirInDirImpl(base_dir, mkdtemp_template, new_dir); in CreateTemporaryDirInDir()
|
H A D | file_util.h | 199 bool CreateTemporaryDirInDir(const FilePath& base_dir,
|
H A D | file_util_win.cc | 330 bool CreateTemporaryDirInDir(const FilePath& base_dir, in CreateTemporaryDirInDir() argument 344 path_to_create = base_dir.Append(new_dir_name); in CreateTemporaryDirInDir()
|
/third_party/node/deps/v8/src/compiler/ |
H A D | graph-visualizer.cc | 236 base::EmbeddedVector<char, 256> base_dir; in GetVisualizerLogFileName() local 238 SNPrintF(base_dir, "%s%c", optional_base_dir, in GetVisualizerLogFileName() 241 base_dir[0] = '\0'; in GetVisualizerLogFileName() 246 SNPrintF(full_filename, "%s%s.%s", base_dir.begin(), filename.begin(), in GetVisualizerLogFileName() 249 SNPrintF(full_filename, "%s%s-%s.%s", base_dir.begin(), filename.begin(), in GetVisualizerLogFileName() 252 SNPrintF(full_filename, "%s%s_%s.%s", base_dir.begin(), filename.begin(), in GetVisualizerLogFileName() 255 SNPrintF(full_filename, "%s%s_%s-%s.%s", base_dir.begin(), filename.begin(), in GetVisualizerLogFileName()
|
/third_party/skia/modules/skresources/include/ |
H A D | SkResources.h | 189 static sk_sp<FileResourceProvider> Make(SkString base_dir, bool predecode = false);
|
/third_party/json/tools/serve_header/ |
H A D | serve_header.py | 160 def scan(self, base_dir): 161 scan_dirs = set([base_dir]) 162 # recursively scan base_dir for working trees
|
/third_party/node/tools/gyp/pylib/gyp/generator/ |
H A D | eclipse.py | 159 base_dir = os.path.dirname(target_name) 161 include_dir = base_dir + "/" + include_dir
|