Mercurial > hg > orthanc
comparison Resources/Samples/ImportDicomFiles/ImportDicomFiles.py @ 2276:b85f68a98474
ImportDicomFiles: Look for Python interpreter in PATH
Some environments (in particular the official Docker image for Python)
use a different path. `env' will lookup the given command in the PATH
directories like shells do (though without the overhead), thus making
the script more portable (it's conventional to have /usr/bin/env present
everywhere).
author | Thibault Nélis <tn@osimis.io> |
---|---|
date | Wed, 12 Apr 2017 18:01:04 +0200 |
parents | a3a65de1840f |
children | 878b59270859 |
comparison
equal
deleted
inserted
replaced
2275:e7a590cf72f9 | 2276:b85f68a98474 |
---|---|
1 #!/usr/bin/python | 1 #!/usr/bin/env python |
2 | 2 |
3 # Orthanc - A Lightweight, RESTful DICOM Store | 3 # Orthanc - A Lightweight, RESTful DICOM Store |
4 # Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics | 4 # Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics |
5 # Department, University Hospital of Liege, Belgium | 5 # Department, University Hospital of Liege, Belgium |
6 # Copyright (C) 2017 Osimis, Belgium | 6 # Copyright (C) 2017 Osimis, Belgium |