if not manifest_url.lower().endswith(('/manifest', '.ismc', '.csm')):
manifest_url += '/Manifest'
- if manifest_url.startswith('http://'):
+ if os.path.exists(url):
+ local_manifest_path = url
+ else:
local_manifest_path = os.path.join(dest_dir, 'Manifest')
download_file(manifest_url, local_manifest_path, "w")
- else:
- local_manifest_path = url
manifest = etree.parse(local_manifest_path)