Mercurial > hg > orthanc
comparison Resources/Samples/Python/ArchiveAllPatients.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 |
---|---|
26 import RestToolbox | 26 import RestToolbox |
27 | 27 |
28 def PrintHelp(): | 28 def PrintHelp(): |
29 print('Download one ZIP archive for all the patients stored in Orthanc\n') | 29 print('Download one ZIP archive for all the patients stored in Orthanc\n') |
30 print('Usage: %s <URL> <Target>\n' % sys.argv[0]) | 30 print('Usage: %s <URL> <Target>\n' % sys.argv[0]) |
31 print('Example: %s http://localhost:8042/ /tmp/Archive.zip\n' % sys.argv[0]) | 31 print('Example: %s http://127.0.0.1:8042/ /tmp/Archive.zip\n' % sys.argv[0]) |
32 exit(-1) | 32 exit(-1) |
33 | 33 |
34 if len(sys.argv) != 3: | 34 if len(sys.argv) != 3: |
35 PrintHelp() | 35 PrintHelp() |
36 | 36 |