Lines Matching refs:path

51 sys.path.insert(0, os.path.dirname(sysconfig.get_paths()['purelib']))
52 sys.path.insert(0, os.path.dirname(sysconfig.get_paths()['stdlib']))
85 print('sys.path: %s', sys.path)
98 CMD_RESULT_PATH = os.path.join(os.environ.get(constants.ANDROID_BUILD_TOP,
104 TEST_INFO_CACHE_ROOT = os.path.join(os.path.expanduser('~'), '.atest',
131 (os.path.relpath(os.environ.get(
218 error_log_file = os.path.join(get_build_out_dir(), "error.log")
220 if os.path.isfile(error_log_file):
242 if os.path.isabs(custom_out_dir):
245 user_out_dir = os.path.join(build_top, custom_out_dir)
250 build_top_basename = os.path.basename(build_top)
251 if os.path.isabs(custom_out_dir_common_base):
252 user_out_dir = os.path.join(custom_out_dir_common_base,
255 user_out_dir = os.path.join(build_top, custom_out_dir_common_base,
259 return os.path.join(build_top, "out")
507 if os.path.isfile(result_path):
561 _cmd.append(os.path.join('./', _BUILD_CMD))
604 if not os.path.isfile(filename):
631 if not os.path.isfile(check_file):
655 if os.path.isfile(save_file):
659 if not os.path.isfile(name):
679 build_target = os.path.basename(
684 return os.path.join(os.path.expanduser('~'), '.atest','info_cache',
699 return os.path.join(cache_root, _get_hashed_file_name(test_reference))
713 if not os.path.isdir(cache_root):
742 if os.path.isfile(cache_file):
771 if os.path.isfile(cache_file):
808 os.path.normpath('{}/{}'.format(git_path, change)))
814 modified_files.add(os.path.normpath('{}/{}'.format(
834 def find_files(path, file_name=constants.TEST_MAPPING): argument
846 for root, _, filenames in os.walk(path):
848 match_files.append(os.path.join(root, filename))
864 if os.path.isdir(filename):
939 flake_service = os.path.join(constants.FLAKE_SERVICE_PATH,
941 if not os.path.exists(flake_service):
959 tmp_service = os.path.join(constants.FLAKE_TMP_PATH,
986 def read_test_record(path): argument
995 with open(path, 'rb') as proto_file:
1011 def is_valid_json_file(path): argument
1020 if isinstance(path, bytes):
1021 path = path.decode('utf-8')
1023 if os.path.isfile(path):
1024 with open(path) as json_file:
1027 logging.warning('%s: File not found.', path)
1029 logging.warning('Exception happened while loading %s.', path)
1104 def is_build_file(path): argument
1113 return bool(os.path.splitext(path)[-1] in _ANDROID_BUILD_EXT)