Home
last modified time | relevance | path

Searched refs:source_path (Results 1 – 25 of 37) sorted by relevance

12

/third_party/python/Lib/test/
Dtest_py_compile.py57 self.source_path = os.path.join(self.directory, '_test.py')
58 self.pyc_path = self.source_path + 'c'
59 self.cache_path = importlib.util.cache_from_source(self.source_path)
65 drive = os.path.splitdrive(self.source_path)[0]
68 with open(self.source_path, 'w') as file:
77 py_compile.compile(self.source_path, self.pyc_path)
91 py_compile.compile(self.source_path, self.pyc_path)
99 py_compile.compile(self.source_path, os.devnull)
102 py_compile.compile(self.source_path)
107 py_compile.compile(os.path.basename(self.source_path),
[all …]
Dtest_modulefinder.py384 source_path = base_path + importlib.machinery.SOURCE_SUFFIXES[0]
386 with open_file(source_path) as file:
388 py_compile.compile(source_path, cfile=bytecode_path)
389 os.remove(source_path)
Dtest_compileall.py59 self.source_path = os.path.join(self.directory, '_test.py')
60 self.bc_path = importlib.util.cache_from_source(self.source_path)
61 with open(self.source_path, 'w', encoding="utf-8") as file:
65 shutil.copyfile(self.source_path, self.source_path2)
69 shutil.copyfile(self.source_path, self.source_path3)
82 mtime = int(os.stat(self.source_path).st_mtime)
91 os.utime(self.source_path, (2**32 - 1, 2**32 - 1))
95 self.assertTrue(compileall.compile_file(self.source_path))
101 os.utime(self.source_path, (2**35, 2**35))
105 self.assertTrue(compileall.compile_file(self.source_path))
[all …]
/third_party/boost/tools/inspect/
Dlink_check.cpp252 const path & source_path, bool no_link_errors, bool allow_external_content, in do_url() argument
259 error( library_name, source_path, "Empty URL.", ln ); in do_url()
264 string decoded_url = is_css(source_path) ? url : decode_ampersands(url); in do_url()
269 error( library_name, source_path, in do_url()
280 error( library_name, source_path, "Invalid URL: " + decoded_url, ln ); in do_url()
301 error( library_name, source_path, "External content: " + decoded_url, ln ); in do_url()
315 error( library_name, source_path, "No hostname: " + decoded_url, ln ); in do_url()
325 error( library_name, source_path, in do_url()
330 if ( !no_link_errors && is_css(source_path) ) { in do_url()
333 error( library_name, source_path, in do_url()
[all …]
/third_party/mindspore/mindspore/profiler/parser/
Dminddata_parser.py89 def execute(source_path, output_path, device_id): argument
99 source_path = validate_and_normalize_path(source_path)
101 input_path=source_path, file_name='DATA_PREPROCESS.AICPUMI')
104 input_path=source_path, file_name='DATA_PREPROCESS.dev.AICPUMI')
107 … input_path=os.path.join(source_path, "data"), file_name='DATA_PREPROCESS.AICPUMI')
110 … input_path=os.path.join(source_path, "data"), file_name='DATA_PREPROCESS.dev.AICPUMI')
/third_party/jsoncpp/devtools/
Dtarball.py40 source_path = source
42 for dirpath, dirnames, filenames in os.walk(source_path):
45 path_in_tar = archive_name(source_path)
46 tar.add(source_path, path_in_tar) # filename, arcname
/third_party/node/tools/
Dinstall.py31 def try_symlink(source_path, link_path): argument
32 print('symlinking %s -> %s' % (source_path, link_path))
35 os.symlink(source_path, link_path)
62 source_path, target_path = mkpaths(path, dst)
66 return shutil.copy2(source_path, target_path)
69 source_path, target_path = mkpaths(path, dst)
/third_party/mindspore/mindspore/profiler/
Dprofiling.py268 source_path = os.path.join(self._output_path, job_id)
272 source_path = validate_and_normalize_path(source_path)
274 hwtslog_parser = HWTSLogParser(source_path, hwts_output_filename)
299 aicpu_data_parser = DataPreProcessParser(source_path, output_data_preprocess_aicpu)
303 MinddataParser.execute(source_path, self._output_path, self._rank_id)
330 points, is_training_mode_flag = self._analyse_step_trace(source_path, framework_parser)
336 self._analyse_timeline(aicpu_data_parser, optime_parser, source_path)
355 flops_parser = FlopsParser(source_path, self._output_path, op_task_dict,
401 … def _analyse_step_trace(self, source_path=None, framework_parser=None, is_training_mode_flag=True, argument
443 source_path = validate_and_normalize_path(source_path)
[all …]
/third_party/python/Lib/importlib/
D_bootstrap_external.py504 source_path = source_from_cache(bytecode_path)
506 source_path = bytecode_path[:-1]
507 return source_path if _path_isfile(source_path) else bytecode_path
670 def _compile_bytecode(data, name=None, bytecode_path=None, source_path=None): argument
675 if source_path is not None:
676 _imp._fix_co_filename(code, source_path)
915 def _cache_bytecode(self, source_path, cache_path, data): argument
957 source_path = self.get_filename(fullname)
964 bytecode_path = cache_from_source(source_path)
969 st = self.path_stats(source_path)
[all …]
/third_party/flutter/skia/tools/
Dimgcvt.cpp22 const char* source_path = argc > 1 ? argv[1] : nullptr; in main() local
23 if (!source_path) { in main()
40 auto blob = SkData::MakeFromFileName(source_path); in main()
76 SkDebugf("Couldn't decode %s as an SkImage or an ICC profile.\n", source_path); in main()
/third_party/skia/tools/
Dimgcvt.cpp22 const char* source_path = argc > 1 ? argv[1] : nullptr; in main() local
23 if (!source_path) { in main()
40 auto blob = SkData::MakeFromFileName(source_path); in main()
76 SkDebugf("Couldn't decode %s as an SkImage or an ICC profile.\n", source_path); in main()
/third_party/python/Lib/distutils/command/
Dcheck.py126 source_path = self.distribution.script_name or 'setup.py'
132 reporter = SilentReporter(source_path,
140 document = nodes.document(settings, reporter, source=source_path)
141 document.note_source(source_path, -1)
/third_party/node/deps/npm/node_modules/node-gyp/gyp/pylib/gyp/
Dmac_tool.py391 source_path = resource_rules
396 if not source_path:
397 source_path = os.path.join(
399 shutil.copy2(source_path, target_path)
415 source_path, provisioning_data, team_id = self._FindProvisioningProfile(
421 shutil.copy2(source_path, target_path)
573 source_path = entitlements
577 if not source_path:
578 source_path = os.path.join(
581 shutil.copy2(source_path, target_path)
/third_party/unity/examples/example_3/
Dtarget_gcc_32.yml6 source_path: &source_path 'src/'
19 - *source_path
/third_party/skia/third_party/externals/angle2/tools/android/modularization/convenience/
Dlookup_dep.py215 source_path = pathlib.Path(source_line.strip())
216 java_class = self._parse_full_java_class(source_path)
288 def _parse_full_java_class(source_path: pathlib.Path) -> str:
290 if source_path.suffix != '.java':
294 directory_path: pathlib.Path = source_path.parent
308 class_name = source_path.stem
/third_party/flutter/engine/flutter/sky/tools/roll/
Droll.py112 source_path = os.path.join(source_dir, f)
113 if not os.path.isfile(source_path):
117 system(["cp", source_path, dest_path], cwd=source_dir)
/third_party/ffmpeg/ffbuild/
Dpkgconfig_generate.sh47 includedir=${source_path}
53 includedir=${source_path}
/third_party/gn/src/gn/
Dxcode_object.cc586 const std::string& source_path) { in AddSourceFile() argument
588 DCHECK(!source_path.empty()); in AddSourceFile()
599 child_as_file_reference->path() == source_path) { in AddSourceFile()
604 return CreateChild<PBXFileReference>(navigator_path, source_path, in AddSourceFile()
628 return group->AddSourceFile(navigator_path.substr(sep + 1), source_path); in AddSourceFile()
750 const std::string& source_path, in PBXProject() argument
756 sources_ = main_group_->CreateChild<PBXGroup>(source_path, "Source"); in PBXProject()
769 const std::string& source_path) { in AddSourceFileToIndexingTarget() argument
773 AddSourceFile(navigator_path, source_path, target_for_indexing_); in AddSourceFileToIndexingTarget()
777 const std::string& source_path, in AddSourceFile() argument
[all …]
Dxcode_object.h285 const std::string& source_path);
355 const std::string& source_path,
360 const std::string& source_path);
362 const std::string& source_path,
/third_party/libphonenumber/tools/cpp/src/cpp-build/
Dgenerate_geocoding_data.cc643 string source_path(argv[2]); in Main() local
644 std::replace(source_path.begin(), source_path.end(), '\\', '/'); in Main()
645 string base_name = source_path; in Main()
651 FILE* source_fp = fopen(source_path.c_str(), "w"); in Main()
653 fprintf(stderr, "failed to open %s\n", source_path.c_str()); in Main()
/third_party/boost/tools/build/src/tools/
Dsymlink.py95 source_path = bjam.call("get-target-variable", sources[0], "LOCATE")[0]
97 rel = os.path.relpath(source_path, target_path)
/third_party/node/tools/gyp/pylib/gyp/
Dmac_tool.py485 source_path, provisioning_data, team_id = self._FindProvisioningProfile(
493 shutil.copy2(source_path, target_path)
658 source_path = entitlements
662 if not source_path:
663 source_path = os.path.join(os.environ["SDKROOT"], "Entitlements.plist")
664 shutil.copy2(source_path, target_path)
/third_party/json/third_party/amalgamate/
Damalgamate.py48 file_path = os.path.join(self.source_path, file_path)
72 self.source_path = args.source_path
/third_party/flutter/skia/third_party/externals/angle2/scripts/
Dgenerate_loader.py55 source_path = registry_xml.path_to(path, file_name)
62 with open(source_path, "w") as out:
/third_party/cef/tools/
Dmake_distrib.py294 source_path = os.path.join(build_dir, entry['path'])
295 if os.path.exists(source_path):
299 if os.path.isdir(source_path):
300 copy_dir(source_path, target_path, options.quiet)
309 copy_file(source_path, target_path, options.quiet)
312 sys.stdout.write('Missing conditional path: %s.\n' % source_path)
314 raise Exception('Missing required path: %s' % source_path)

12