From 004866c7a2e3cfd90856f46ba8bdbf306e726b19 Mon Sep 17 00:00:00 2001 From: Just van den Broecke Date: Tue, 30 Jun 2026 16:38:30 +0300 Subject: [PATCH] Update extract and dest paths for select2 JS lib in tasks.py --- tasks.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tasks.py b/tasks.py index 4ec1c3f..4de63bc 100644 --- a/tasks.py +++ b/tasks.py @@ -100,10 +100,11 @@ def setup(c): zipstr = BytesIO(urlopen(select2).read()) zipfile_obj = zipfile.ZipFile(zipstr) - zipfile_obj.extractall(STATIC_LIB) + zip_dst_dir = STATIC_LIB / '' + zipfile_obj.extractall(zip_dst_dir) - dirname = list(STATIC_LIB.glob('select2-*'))[0] - dstdir = ''.join(dirname.name.rsplit('-', 1)[:-1]) + dirname = list(zip_dst_dir.glob('select2-*'))[0] + dstdir = STATIC_LIB / 'select2' try: os.rename(dirname, dstdir)