Mercurial > hg > orthanc-tests
comparison GenerateConfigurationForTests.py @ 585:536e1a76a2b5
new hg server
author | Alain Mazy <am@osimis.io> |
---|---|
date | Tue, 14 Nov 2023 08:23:28 +0100 |
parents | 6399d3a1cd30 |
children | b6c1f0c9ca15 |
comparison
equal
deleted
inserted
replaced
584:c4f4b0bc908b | 585:536e1a76a2b5 |
---|---|
89 ip = socket.gethostbyname(socket.gethostname()) | 89 ip = socket.gethostbyname(socket.gethostname()) |
90 | 90 |
91 | 91 |
92 # Download the content of the default configuration file | 92 # Download the content of the default configuration file |
93 with open(args.target, 'wb') as f: | 93 with open(args.target, 'wb') as f: |
94 url = 'https://hg.orthanc-server.com/orthanc/raw-file/default/OrthancServer/Resources/Configuration.json' | 94 url = 'https://orthanc.uclouvain.be/hg/orthanc/raw-file/default/OrthancServer/Resources/Configuration.json' |
95 #url = 'https://hg.orthanc-server.com/orthanc/raw-file/default/Resources/Configuration.json' | |
96 #url = 'https://bitbucket.org/sjodogne/orthanc/raw/default/Resources/Configuration.json' | |
97 http = urlopen(url) | 95 http = urlopen(url) |
98 if http.getcode() != 200: | 96 if http.getcode() != 200: |
99 raise Exception('Cannot download: %s' % url) | 97 raise Exception('Cannot download: %s' % url) |
100 | 98 |
101 f.write(http.read()) | 99 f.write(http.read()) |