Skip to content

Commit

Permalink
Merge pull request #10 from mrichar1/py3_fix
Browse files Browse the repository at this point in the history
Make bootstrapsrc.py py3 compatible.
  • Loading branch information
mrichar1 authored Feb 5, 2020
2 parents feb6d52 + b6ad6b1 commit c8789dd
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion bootstrap/bootstrapsrc.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
import os
try:
from urllib.request import urlretrieve
except ImportError:
from urllib import urlretrieve
import urllib
import zipfile
import platform
Expand All @@ -19,7 +23,7 @@ def after_install(options, home_dir):

def _download_and_extract(url, extract_path):
print('Downloading {0}'.format(url))
tmp_zip_path = urllib.urlretrieve(url)[0]
tmp_zip_path = urlretrieve(url)[0]
zf = zipfile.ZipFile(tmp_zip_path)

extract_path = os.path.join(home_dir, extract_path)
Expand Down

0 comments on commit c8789dd

Please sign in to comment.