# HG changeset patch # User Thibault NĂ©lis # Date 1492012864 -7200 # Node ID b85f68a98474814dbf444a078ca1bb5154d083cf # Parent e7a590cf72f9418dd1c46fe01033b916f2079119 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). diff -r e7a590cf72f9 -r b85f68a98474 Resources/Samples/ImportDicomFiles/ImportDicomFiles.py --- 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