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 = {'MANAGEDFLU_ROOT_DIR': '/Users/bgschaid/OpenFOAM/ma...

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:
{'MANAGEDFLU_ROOT_DIR': '/Users/bgschaid/OpenFOAM/managedflu-1.1-1', '\
LESS_TERMCAP_md': '\x1b[01;31m', 'WM_MPLIB': 'MACPORTOPENMPI', 'XTERM_\
LOCALE': 'C', 'WM_CXXFLAGS': '-m64 -fPIC', 'DBUS_LAUNCHD_SESSION_BUS_S\
OCKET': '/tmp/launch-wxvrPd/unix_domain_listener', 'FOAM_LIB': '/Users\
/bgschaid/OpenFOAM/OpenFOAM-1.7.x/lib', 'INFOPATH': '/opt/local/info:'\
, 'SHELL': '/bin/zsh', 'WM_ARCH_BASE': 'darwin', 'SECURITYSESSIONID': \
'186a5', 'WM_OPTIONS': 'darwinIntel64Gcc45DPOpt', 'FOAM_MPI_LIBBIN': '\
/Users/bgschaid/OpenFOAM/OpenFOAM-1.7.x/lib/darwinIntel64Gcc45DPOpt/op\
...