Skip to content

Commit

Permalink
Fixed bug introduced in last commit
Browse files Browse the repository at this point in the history
When regl_path was relative, zipfiles extractions would mess everything up.
  • Loading branch information
Nico264 authored Aug 9, 2017
1 parent 9ca1a86 commit 14eb19a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions download_months.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,14 @@

print("Downloading from "+true_url)
true_url = true_url[:8]+bs.quote(true_url[8:])
bs.urllib2.urlretrieve(true_url, "temp/"+track_name+".zip")
bs.urllib2.urlretrieve(true_url, "./temp/"+track_name+".zip")

for filename in os.listdir("temp"):
print("Extracting "+filename)

file_uri = 'temp/'+filename
file_uri = './temp/'+filename
with zipfile.ZipFile(file_uri, "r") as z:
z.extractall(rvgl_dir)
z.extractall()
os.remove(file_uri)

os.rmdir("temp")
Expand Down

0 comments on commit 14eb19a

Please sign in to comment.