]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Use a SALOME_USER_COMPONENTS environment variable in runSalome.py
authortajchman <tajchman>
Fri, 23 Jan 2004 08:44:21 +0000 (08:44 +0000)
committertajchman <tajchman>
Fri, 23 Jan 2004 08:44:21 +0000 (08:44 +0000)
(correction)

bin/runSalome.py

index f8ab15807f0babf76631fbfc0118a1a91a0a35af..ccbbb6fdf8dce76e171ebf83c295bc7e8efaec1e 100755 (executable)
@@ -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(',')