Mercurial > hg > orthanc-tests
comparison GenerateConfigurationForTests.py @ 319:de6e73e4df60 Orthanc-1.7.2
leaving bitbucket
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 30 Jun 2020 16:14:30 +0200 |
parents | b55a7cb5ee02 |
children | 8a462f9c5a97 |
comparison
equal
deleted
inserted
replaced
318:bac7cc80f240 | 319:de6e73e4df60 |
---|---|
79 ip = socket.gethostbyname(socket.gethostname()) | 79 ip = socket.gethostbyname(socket.gethostname()) |
80 | 80 |
81 | 81 |
82 # Download the content of the default configuration file | 82 # Download the content of the default configuration file |
83 with open(args.target, 'w') as f: | 83 with open(args.target, 'w') as f: |
84 url = 'https://hg.orthanc-server.com/orthanc/raw-file/default/Resources/Configuration.json' | 84 url = 'https://hg.orthanc-server.com/orthanc/raw-file/default/OrthancServer/Resources/Configuration.json' |
85 #url = 'https://hg.orthanc-server.com/orthanc/raw-file/default/Resources/Configuration.json' | |
85 #url = 'https://bitbucket.org/sjodogne/orthanc/raw/default/Resources/Configuration.json' | 86 #url = 'https://bitbucket.org/sjodogne/orthanc/raw/default/Resources/Configuration.json' |
86 http = urllib.urlopen(url) | 87 http = urllib.urlopen(url) |
87 if http.getcode() != 200: | 88 if http.getcode() != 200: |
88 raise Exception('Cannot download: %s' % url) | 89 raise Exception('Cannot download: %s' % url) |
89 | 90 |