alessandro trinca tornidor
ci: remove the submodule and during the current docker build we download instead the files from the repositories OR copy from the current directory
3550787 | import requests | |
| import sys | |
| if __name__ == '__main__': | |
| url = sys.argv[1] | |
| filename = sys.argv[2] | |
| try: | |
| response = requests.get(url, stream=True) | |
| response.raise_for_status() # Raise an exception for HTTP errors | |
| print(f"saving file to '{filename}'") | |
| with open(filename, 'wb') as f: | |
| for chunk in response.iter_content(chunk_size=8192): | |
| f.write(chunk) | |
| print(f"Successfully downloaded '{filename}' from '{url}'") | |
| except requests.exceptions.RequestException as e: | |
| print(f"Error downloading the file: '{e}'") | |
| sys.exit(1) | |