Commit 6e720af9 authored by Mats Sjöberg's avatar Mats Sjöberg

Fix problem where downloaded files could not be moved across file systems

parent 8ba7ae8a
......@@ -21,6 +21,7 @@ import collections
import configparser
import os
import re
import shutil
import sys
import tempfile
import urllib.request
......@@ -273,7 +274,7 @@ def download_url(url, localname):
fp.close()
tmpname = fp.name
os.rename(tmpname, localname)
shutil.move(tmpname, localname)
return localname
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment