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 4234426 commit 9934c49Copy full SHA for 9934c49
1 file changed
tasks.py
@@ -102,8 +102,10 @@ def setup(c):
102
zipstr = BytesIO(urlopen(select2).read())
103
zipfile_obj = zipfile.ZipFile(zipstr)
104
zipfile_obj.extractall(STATIC_LIB)
105
- dirname = Path(glob.glob(STATIC_LIB / 'select2-*')[0])
106
- dstdir = ''.join(dirname.rsplit('-', 1)[:-1])
+
+ dirname = list(STATIC_LIB.glob('select2-*'))[0]
107
+ dstdir = ''.join(dirname.name.rsplit('-', 1)[:-1])
108
109
try:
110
os.rename(dirname, dstdir)
111
except OSError:
0 commit comments