We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 244e2e1 commit 004866cCopy full SHA for 004866c
1 file changed
tasks.py
@@ -100,10 +100,11 @@ def setup(c):
100
101
zipstr = BytesIO(urlopen(select2).read())
102
zipfile_obj = zipfile.ZipFile(zipstr)
103
- zipfile_obj.extractall(STATIC_LIB)
+ zip_dst_dir = STATIC_LIB / ''
104
+ zipfile_obj.extractall(zip_dst_dir)
105
- dirname = list(STATIC_LIB.glob('select2-*'))[0]
106
- dstdir = ''.join(dirname.name.rsplit('-', 1)[:-1])
+ dirname = list(zip_dst_dir.glob('select2-*'))[0]
107
+ dstdir = STATIC_LIB / 'select2'
108
109
try:
110
os.rename(dirname, dstdir)
0 commit comments