From: Renaud Barate Date: Fri, 26 Jun 2015 08:55:18 +0000 (+0200) Subject: Fix Salome launch when there are config files named SalomeApprc.DEV.7 for instance X-Git-Tag: SALOME_COEUR_V1_2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=979ee70dd907a409456ef347b464d0df0a937b86;p=modules%2Fkernel.git Fix Salome launch when there are config files named SalomeApprc.DEV.7 for instance --- diff --git a/bin/launchConfigureParser.py b/bin/launchConfigureParser.py index 84e040859..39c3d22cb 100755 --- a/bin/launchConfigureParser.py +++ b/bin/launchConfigureParser.py @@ -126,7 +126,13 @@ def version(): def version_id(fname): major = minor = release = dev1 = dev2 = 0 vers = fname.split(".") - if len(vers) > 0: major = int(vers[0]) + if len(vers) > 0: + try: + major = int(vers[0]) + except ValueError: + # If salome version given is DEV, the call to int('DEV') will fail with + # a ValueError exception + pass try: if len(vers) > 1: minor = int(vers[1]) except ValueError: