Mercurial > hg > orthanc
comparison Resources/Samples/ImportDicomFiles/ImportDicomFiles.py @ 2032:65b1ce7cb84f
Replaced "localhost" by "127.0.0.1", as it might impact performance on Windows
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 21 Jun 2016 09:26:56 +0200 |
parents | b1291df2f780 |
children | a3a65de1840f |
comparison
equal
deleted
inserted
replaced
2031:a6e8e2251304 | 2032:65b1ce7cb84f |
---|---|
31 before starting this script. The files are uploaded through the REST | 31 before starting this script. The files are uploaded through the REST |
32 API. | 32 API. |
33 | 33 |
34 Usage: %s [hostname] [HTTP port] [path] | 34 Usage: %s [hostname] [HTTP port] [path] |
35 Usage: %s [hostname] [HTTP port] [path] [username] [password] | 35 Usage: %s [hostname] [HTTP port] [path] [username] [password] |
36 For instance: %s localhost 8042 . | 36 For instance: %s 127.0.0.1 8042 . |
37 """ % (sys.argv[0], sys.argv[0], sys.argv[0])) | 37 """ % (sys.argv[0], sys.argv[0], sys.argv[0])) |
38 exit(-1) | 38 exit(-1) |
39 | 39 |
40 URL = 'http://%s:%d/instances' % (sys.argv[1], int(sys.argv[2])) | 40 URL = 'http://%s:%d/instances' % (sys.argv[1], int(sys.argv[2])) |
41 | 41 |