From: tajchman Date: Fri, 23 Jan 2004 08:44:21 +0000 (+0000) Subject: Use a SALOME_USER_COMPONENTS environment variable in runSalome.py X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=212666862a162025f36ef3d50f55c29b2ef0003f;p=modules%2Fkernel.git Use a SALOME_USER_COMPONENTS environment variable in runSalome.py (correction) --- 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(',')