ENH: provide FOAM_EXECUTABLE as environment variable in argList

- can be used directly from within an application or function-object.
  Makes it available for dictionaries.
This commit is contained in:
Mark Olesen
2017-02-24 17:48:13 +01:00
parent 65eb43fcb1
commit 5fc6c3ca34
4 changed files with 57 additions and 23 deletions

View File

@ -288,6 +288,9 @@ Foam::vtkPVFoam::vtkPVFoam
fullCasePath = cwd();
}
// The name of the executable, unless already present in the environment
setEnv("FOAM_EXECUTABLE", "paraview", false);
// Set the case as an environment variable - some BCs might use this
if (fullCasePath.name().find("processor", 0) == 0)
{

View File

@ -206,6 +206,9 @@ Foam::vtkPVblockMesh::vtkPVblockMesh
fullCasePath = cwd();
}
// The name of the executable, unless already present in the environment
setEnv("FOAM_EXECUTABLE", "paraview", false);
// Set the case as an environment variable - some BCs might use this
if (fullCasePath.name().find("processor", 0) == 0)
{