Lines Matching refs:path

49     sha_sums256_path = os.path.join(os.path.dirname(check_url), sha_sums256)

50 file_name = os.path.basename(check_url)
69 if not os.path.exists(dest):
75 if os.path.exists(dest):
76 if os.path.islink(dest):
84 if os.path.exists(dest_dir):
85 if os.path.islink(dest_dir):
87 elif os.path.isdir(dest_dir):
92 os.makedirs(os.path.dirname(dest_dir), exist_ok=True)
105 with os.fdopen(os.open(os.path.join(home_path, '.npmrc'), os.O_WRONLY | os.O_CREAT, mode=0o640), 'w') as f:
108 if not os.path.exists(download_dir):
110 with os.fdopen(os.open(os.path.join(download_dir, 'package.json'), os.O_WRONLY | os.O_CREAT, mode=0o640),
114 npm_path = os.path.join(code_path, "prebuilts/build-tools/common/nodejs/current/bin/npm")
115 node_bin_path = os.path.join(code_path, "prebuilts/build-tools/common/nodejs/current/bin")
120 symlink_src2dest(os.path.join(download_dir, 'node_modules'), symlink_dir)
128 package_path = os.path.join(code_path, npm_download.get('package_path'))
129 package_lock_path = os.path.join(code_path, npm_download.get('package_lock_path'))
132 download_dir = os.path.join(home_path, npm_download.get('download_dir'), hash_value)
135 symlink = os.path.join(code_path, npm_download.get('symlink'))
136 install_hpm(code_path, os.path.join(home_path, download_dir), os.path.join(code_path, symlink), home_path)
142 if not os.path.exists(os.path.join(download_dir, "npm-install.js")):
143 npm_install_script = os.path.join(os.path.dirname(package_path), "npm-install.js")
144 if os.path.exists(npm_install_script):
145 shutil.copyfile(npm_install_script, os.path.join(download_dir, "npm-install.js"))
151 symlink_src2dest(os.path.join(download_dir, "node_modules"), os.path.join(code_path, link))
154 symlink = os.path.join(code_path, npm_download.get('symlink'))
157 copy_folder(os.path.join(download_dir, "node_modules"), symlink)
160 copy_folder(os.path.join(download_dir, "node_modules"), symlink)
163 copy_folder(os.path.join(code_path, copy_entry['src']), os.path.join(code_path, copy_entry['dest']))
166 copy_folder(os.path.join(code_path, copy_ext_entry['src']), os.path.join(code_path, copy_ext_entry['dest']))
171 file_path = os.path.join(folder_path, filename)
172 if os.path.exists(file_path):
177 if not os.path.exists(folder_path):
209 if not os.path.exists(destination_folder):
228 after_extract_folder = os.listdir(os.path.join(download_dir, version))[0]
229 copy_folder(os.path.join(download_dir, version, after_extract_folder, one_type.get('copy_src')),
230 os.path.join(download_dir, version, after_extract_folder, one_type.get('copy_dest')))
231 copy_folder(os.path.join(download_dir, version, after_extract_folder),
232 os.path.join(code_path, one_type.get('symlink')))
233 python3_path = os.path.join(download_dir, version, after_extract_folder, one_type.get('copy_src'),
235 pip3_path = os.path.join(download_dir, version, after_extract_folder, one_type.get('copy_src'), 'bin',
245 after_extract_file_list = os.listdir(os.path.join(download_dir, version))
248 script_path = os.path.join(download_dir, version, file_name, "install.sh")
250 "--destdir='{}'".format(os.path.join(code_path, one_type.get('destdir')))])
266 url = os.path.join(args.repo_https, one_type.get('url'))
267 download_dir = os.path.join(home_path, one_type.get('download_dir'))
269 extract_compress_files(os.path.join(download_dir, url.split('/')[-1]),
270 os.path.join(download_dir, version))
278 after_extract_folder = os.listdir(os.path.join(download_dir, version))[0]
279 symlink_src2dest(os.path.join(download_dir, version, after_extract_folder),
280 os.path.join(code_path, one_type.get('symlink')))
281 symlink_src2dest(os.path.join(code_path, one_type.get('symlink'), one_type.get('copy_src')),
282 os.path.join(code_path, one_type.get('symlink'), one_type.get('copy_dest')))
285 after_extract_folder = os.listdir(os.path.join(download_dir, version))[0]
286 copy_folder(os.path.join(download_dir, version, after_extract_folder),
287 os.path.join(code_path, one_type.get('symlink')))
289 after_extract_file_list = os.listdir(os.path.join(download_dir, version))
290 symlink = os.path.join(code_path, one_type.get('symlink'))
295 symlink_src2dest(os.path.join(download_dir, version, file_name), symlink)
296 if tar_name == 'nodejs' and url == os.path.join(args.repo_https,
298 symlink_src2dest(symlink, os.path.join(os.path.dirname(symlink), 'current'))
316 symlink_src2dest(os.path.join(download_dir, version, one_file),
317 os.path.join(symlink, one_file))
319 symlink_src2dest(os.path.join(download_dir, version, one_file),
325 parser.add_argument('--code_path', required=True, type=str, help='path of openharmony code')
326 parser.add_argument('--home_path', required=True, type=str, help='path of home')
327 parser.add_argument('--config_file', required=True, type=str, help='path of prebuilts_config.json')
329 help='path of prebuilts_config.json')