Skip to content

Commit 2ec7145

Browse files
author
Sergey Ptashnick
committed
builder: sync with upstream (fix getting basename in download_module_from_local)
1 parent 638eab7 commit 2ec7145

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

builder/src/downloader.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ def download_module_from_local(module):
173173
sys.exit(1)
174174

175175
module_name = set_module_name(module.get('name'), local_url)
176-
file_name = local_url[local_url("/") + 1:]
176+
file_name = local_url[local_url.rfind("/") + 1:]
177177
shutil.copy(local_url, os.path.join(config.SRC_PATH, "modules", file_name))
178178
module_name = common_utils.extract_archive(file_name, os.path.join(config.SRC_PATH, "modules"))
179179
return module_name

0 commit comments

Comments
 (0)