def archive_dir_name(bundle_path, version):
dir_path, bundle_filename = os.path.split(bundle_path)
bundle_name, bundle_ext = os.path.splitext(bundle_filename)
# GitHub will replace spaces with periods; dashes look better
bundle_name = bundle_name.replace(' ', '-')
return dir_path, '%s-%s%s' % (bundle_name, version, bundle_ext)
评论列表
文章目录