diff --git a/python_files/pyhelpers.py b/python_files/pyhelpers.py index ba4bc1850ea3846d81a71a5452a77450cc307a24..555e21d50dac5f6fe5ce52dd22a9d08fd0f03b41 100644 --- a/python_files/pyhelpers.py +++ b/python_files/pyhelpers.py @@ -50,7 +50,7 @@ def download_orekit_data_curdir(filename='orekit-data.zip'): url = "https://gitlab.orekit.org/orekit/orekit-data/-/archive/master/orekit-data-master.zip" # Download the orekit-data file and store it locally - with urlrequest.urlopen(url) as response, open("orekit-data.zip", 'wb') as out_file: + with urlrequest.urlopen(url) as response, open(filename, 'wb') as out_file: print('Downloading file from:', url) shutil.copyfileobj(response, out_file)