Lines Matching full:path
15 def checksum(path):
16 if not os.path.exists(path):
19 with open(path, 'rb') as f:
26 def download(md5, path):
27 if not md5 == checksum(path):
28 dirname = os.path.dirname(path)
29 if dirname and not os.path.exists(dirname):
35 with open(path, 'wb') as o:
39 fd, path = tempfile.mkstemp(prefix=prefix)
41 return path
44 target_dir = os.path.join('platform_tools', 'android', 'apps', 'skqp', 'src', 'main', 'assets')
45 os.chdir(os.path.join(os.path.dirname(__file__), os.pardir, os.pardir, target_dir))
47 if not os.path.isfile(checksum_path):
48 sys.stderr.write('Error: "%s" is missing.\n' % os.path.join(target_dir, checksum_path))
58 md5, path = line.strip().split(';', 1)
59 records.append((md5, path))