Mercurial > hg > orthanc
changeset 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 | e7a590cf72f9 |
children | c6defdc4c611 fd5869e3ed5e |
files | Resources/Samples/ImportDicomFiles/ImportDicomFiles.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/Resources/Samples/ImportDicomFiles/ImportDicomFiles.py Tue Apr 11 10:35:05 2017 +0200 +++ b/Resources/Samples/ImportDicomFiles/ImportDicomFiles.py Wed Apr 12 18:01:04 2017 +0200 @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python # Orthanc - A Lightweight, RESTful DICOM Store # Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics