From 979ee70dd907a409456ef347b464d0df0a937b86 Mon Sep 17 00:00:00 2001 From: Renaud Barate Date: Fri, 26 Jun 2015 10:55:18 +0200 Subject: [PATCH] Fix Salome launch when there are config files named SalomeApprc.DEV.7 for instance --- bin/launchConfigureParser.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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: -- 2.39.2