diff 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
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