Mercurial > hg > orthanc
comparison Resources/Samples/Python/ChangesLoop.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 |
---|---|
32 print(""" | 32 print(""" |
33 Sample script that continuously monitors the arrival of new DICOM | 33 Sample script that continuously monitors the arrival of new DICOM |
34 images into Orthanc (through the Changes API). | 34 images into Orthanc (through the Changes API). |
35 | 35 |
36 Usage: %s [hostname] [HTTP port] | 36 Usage: %s [hostname] [HTTP port] |
37 For instance: %s localhost 8042 | 37 For instance: %s 127.0.0.1 8042 |
38 """ % (sys.argv[0], sys.argv[0])) | 38 """ % (sys.argv[0], sys.argv[0])) |
39 exit(-1) | 39 exit(-1) |
40 | 40 |
41 URL = 'http://%s:%d' % (sys.argv[1], int(sys.argv[2])) | 41 URL = 'http://%s:%d' % (sys.argv[1], int(sys.argv[2])) |
42 | 42 |