From af3eafb0c5db8ab670f3182cfdb27538aeb61da0 Mon Sep 17 00:00:00 2001 From: DUC ANH HOANG Date: Wed, 31 May 2023 15:52:18 +0200 Subject: [PATCH] check version file in ABSOLUTE_APPLI_PATH --- bin/launchConfigureParser.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bin/launchConfigureParser.py b/bin/launchConfigureParser.py index a0870c469..25348d784 100644 --- a/bin/launchConfigureParser.py +++ b/bin/launchConfigureParser.py @@ -113,6 +113,10 @@ def version(): filename = version_file root_dir = os.environ.get( 'GUI_ROOT_DIR', '' ) # GUI_ROOT_DIR "" if not found version_file = os.path.join(root_dir, 'bin', 'salome', 'VERSION') + if root_dir and os.path.exists( version_file ): + filename = version_file + root_dir = os.environ.get( 'ABSOLUTE_APPLI_PATH', '' ) # ABSOLUTE_APPLI_PATH "" if not found + version_file = os.path.join(root_dir, 'bin', 'salome', 'VERSION') if root_dir and os.path.exists( version_file ): filename = version_file if filename: -- 2.39.2