From 212666862a162025f36ef3d50f55c29b2ef0003f Mon Sep 17 00:00:00 2001 From: tajchman Date: Fri, 23 Jan 2004 08:44:21 +0000 Subject: [PATCH] Use a SALOME_USER_COMPONENTS environment variable in runSalome.py (correction) --- bin/runSalome.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bin/runSalome.py b/bin/runSalome.py index f8ab15807..ccbbb6fdf 100755 --- a/bin/runSalome.py +++ b/bin/runSalome.py @@ -123,7 +123,11 @@ except: print usage sys.exit(1) -user_modules=os.environ["SALOME_USER_COMPONENTS"] +try: + user_modules=os.environ["SALOME_USER_COMPONENTS"] +except: + user_modules=None + if user_modules: liste_modules = liste_modules + user_modules.split(',') -- 2.39.2