]> SALOME platform Git repositories - modules/yacs.git/commitdiff
Salome HOME
script of PROFILE generation app-quickstart.py : adding _NO_ as possible value of...
authorCEA Support SALOME <support-salome@cea.fr>
Fri, 6 Feb 2015 15:33:39 +0000 (16:33 +0100)
committerCEA Support SALOME <support-salome@cea.fr>
Fri, 6 Feb 2015 15:33:39 +0000 (16:33 +0100)
src/AppQuickStart/app-quickstart.py

index c4942a11e33ba6e5b667940946b81b18c1967497..f04439da2880fc9606aeedd37c17998553753ba7 100755 (executable)
@@ -163,6 +163,8 @@ def profileReplaceStrings( src, dst, options ) :
     with open( dst, "wt" ) as fout:
         with open( src, "rt" ) as fin:
             for line in fin:
+                if options.modules == '_NO_' and '[LIST_OF_MODULES]' in line:
+                    line = ''
                 l = line.replace( '[LIST_OF_MODULES]', options.modules )
                 l = l.replace( '[VERSION]', options.version )
                 l = l.replace( '[SLOGAN]', options.slogan )