Module CreateModuleFile
source code
Application-class that implements pyFoamCreateModuleFile.py
Generate a Modules modulefile for OpenFOAM using differences in environment
variables before and after sourcing the main OpenFOAM configuration file
For more information on Modules, visit the Environment Modules Project:
http://modules.sourceforge.net
Usage : pyFoamCreateModuleFile.py OpenFOAM_CfgFile moduleFile
For example: pyFoamCreateModuleFile.py ./bashrc /tmp/module
Warning #1: This command will not work if your OpenFOAM environment variabales are already
initialized.
Warning #2: This command will not work if you are using the superuser account (aka: root)
Author:
Martin Beaudoin, Hydro-Quebec, 2012. All rights reserved
|
__package__ = ' PyFoam.Applications '
|
|
__warningregistry__ = { ( ' the sets module is deprecated ' , <type...
|
Imports:
OptionGroup,
ParsedParameterFile,
PyFoamApplication,
Set,
execute,
os,
path,
print_,
re,
string,
sys
__warningregistry__
- Value:
{ ( ' the sets module is deprecated ' ,
<type 'exceptions.DeprecationWarning'>,
33) : True}
|
|