Mercurial > hg > orthanc-postgresql
changeset 74:706064df4e3f
improvement
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 09 Oct 2015 18:31:19 +0200 |
parents | 419a55b6e362 |
children | d8b0679333d4 |
files | Resources/SyncOrthancFolder.py |
diffstat | 1 files changed, 11 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/Resources/SyncOrthancFolder.py Fri Oct 09 18:25:36 2015 +0200 +++ b/Resources/SyncOrthancFolder.py Fri Oct 09 18:31:19 2015 +0200 @@ -5,9 +5,10 @@ # to match the latest version of the Orthanc source code. # +import multiprocessing import os +import stat import urllib2 -import multiprocessing TARGET = os.path.join(os.path.dirname(__file__), '..', 'Orthanc') PLUGIN_SDK_VERSION = '0.9.4' @@ -37,6 +38,8 @@ 'orthanc/OrthancCppDatabasePlugin.h', ] +EXE = [ ] + def Download(x): @@ -69,3 +72,10 @@ pool = multiprocessing.Pool(10) # simultaneous downloads pool.map(Download, commands) + + +for exe in EXE: + path = os.path.join(TARGET, exe) + st = os.stat(path) + os.chmod(path, st.st_mode | stat.S_IEXEC) +