comparison Tests/Toolbox.py @ 173:ed3db6386587

testing overwrite
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 19 Sep 2018 15:26:17 +0200
parents 0682740fcfcb
children d468cbe1b161
comparison
equal deleted inserted replaced
172:ead4353854ad 173:ed3db6386587
252 if os.path.isfile(p): 252 if os.path.isfile(p):
253 return p 253 return p
254 254
255 return name 255 return name
256 256
257 def IsOrthancVersionAbove(orthanc, major, minor, revision):
258 v = DoGet(orthanc, '/system')['Version']
259
260 if v == 'mainline':
261 return True
262 else:
263 tmp = v.split('.')
264 a = int(tmp[0])
265 b = int(tmp[1])
266 c = int(tmp[2])
267 return (a > major or
268 (a == major and b > minor) or
269 (a == major and b == minor and c >= revision))
257 270
258 271
259 class ExternalCommandThread: 272 class ExternalCommandThread:
260 @staticmethod 273 @staticmethod
261 def ExternalCommandFunction(arg, stop_event, command, env): 274 def ExternalCommandFunction(arg, stop_event, command, env):