Package PyFoam :: Package Infrastructure :: Module Hardcoded
[hide private]
[frames] | no frames]

Module Hardcoded

source code

Hardcoded values

Functions [hide private]
 
assertDirectory(name)
Makes sure that the directory exists
source code
 
globalConfigDir()
Returns: The name of the global configuration directory where .cfg-files can be placed
source code
 
globalConfigFile()
Returns: The name of the global configuration File
source code
 
globalDirectory()
Returns: the global directory
source code
 
logDirectory()
Path to the log directory that this user may write to.
source code
 
userConfigDir()
Returns: The name of the user configuration directory where .cfg-files can be placed
source code
 
userConfigFile()
Returns: The name of the user configuration File
source code
 
userDirectory()
Returns: the user directory
source code
 
userName()
Returns: name of the current user
source code
Variables [hide private]
  PY3 = False
  __package__ = 'PyFoam.Infrastructure'
  _pyFoamConfigName = 'pyfoamrc'
  _pyFoamDirName = 'pyFoam'
  environ = {'WM_MPLIB': 'MACPORTOPENMPI', 'LESS': '-R', 'WM_CXX...

Imports: makedirs, path


Function Details [hide private]

assertDirectory(name)

source code 

Makes sure that the directory exists

Parameters:
  • name - the directory

globalConfigDir()

source code 
Returns:
The name of the global configuration directory where .cfg-files can be placed

globalConfigFile()

source code 
Returns:
The name of the global configuration File

globalDirectory()

source code 
Returns:
the global directory

logDirectory()

source code 

Path to the log directory that this user may write to. /var/log/pyFoam for root, ~/.pyFoam/log for all others

Returns:
path to the log directory.

userConfigDir()

source code 
Returns:
The name of the user configuration directory where .cfg-files can be placed

userConfigFile()

source code 
Returns:
The name of the user configuration File

userDirectory()

source code 
Returns:
the user directory

userName()

source code 
Returns:
name of the current user

Variables Details [hide private]

environ

Value:
{'WM_MPLIB': 'MACPORTOPENMPI', 'LESS': '-R', 'WM_CXXFLAGS': '-m64 -fPI\
C', 'DBUS_LAUNCHD_SESSION_BUS_SOCKET': '/tmp/launch-ZlFcTx/unix_domain\
_listener', 'FOAM_LIB': '/Users/bgschaid/OpenFOAM/OpenFOAM-1.7.x/lib',\
 'SHELL': '/bin/zsh', 'WM_ARCH_BASE': 'darwin', 'SECURITYSESSIONID': '\
186a5', 'WM_OPTIONS': 'darwinIntel64Gcc45DPOpt', 'FOAM_MPI_LIBBIN': '/\
Users/bgschaid/OpenFOAM/OpenFOAM-1.7.x/lib/darwinIntel64Gcc45DPOpt/ope\
nmpi-macport', 'MANPATH': '/opt/local/share/man:', 'WM_MACPORT_VERSION\
': '4.5', 'MFLAGS': '', 'WORKON_HOME': '/Users/bgschaid/.virtualenvs',\
...