]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Add new method to SalomeContext class: addToTestsPath emc2p_new_appli
authorGilles DAVID <gilles-g.david@edf.fr>
Wed, 24 Apr 2024 13:46:23 +0000 (15:46 +0200)
committerGilles DAVID <gilles-g.david@edf.fr>
Tue, 7 May 2024 15:41:02 +0000 (17:41 +0200)
bin/salomeContext.py

index 5fe4126f8f9092e332720204459fcd35f9b8ddef..65dfcb96054f05cd8a0f0b4e6bdd3fa41dc142ae 100755 (executable)
@@ -175,6 +175,10 @@ class SalomeContext:
     self.addToVariable('PYTHONPATH', value)
   #
 
+  def addToTestsPath(self, value):
+    """Append value to SALOME_TESTS_PATH environnement variable"""
+    self.appendVariable("SALOME_TESTS_PATH", value, separator=":")
+
   """Set environment variable to value"""
   def setVariable(self, name, value, overwrite=False):
     env = os.getenv(name, '')