Skip to content

Commit bb4c0f1

Browse files
committed
downloadfiles: do always replace downloaded bin file as filename stays same
1 parent 14badea commit bb4c0f1

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

downloadfiles.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -180,9 +180,7 @@ def download(url, file_name=None):
180180
a = urlparse(replacefile)
181181
fname=os.path.basename(a.path)
182182
print(f"{replacement}file: {replacefile} filename: {fname}")
183-
if not os.path.isfile(fname):
184-
download(replacefile,fname)
185-
else: print(fname,"already exists")
183+
download(replacefile,fname)
186184
newconfig[replacement+"file"]=fname
187185
else: print("no bfiles defined!")
188186

0 commit comments

Comments
 (0)