(class from pyomo.common.fileutils)
pyomo.common.fileutils
Bases: object
object
An object for storing and managing a PathManager path
PathManager
Methods
__init__(manager, name)
__init__
available()
available
Returns True if the registered path is available.
disable()
disable
Disable this path entry
get_path()
get_path
DEPRECATED.
path()
path
Return the full, normalized path to the registered path entry.
rehash()
rehash
Requery the location of this path entry
set_path(value)
set_path
Member Documentation
Entries are available if the object was found found in the search locations and has not been explicitly disabled.
This method “disables” this path entry by marking it as “not found”. Disabled entries return False for available() and None for path(). The disabled status will persist until the next call to rehash().
Deprecated since version 5.6.2: get_path() is deprecated; use pyomo.common.Executable(name).path()
If the object is not found (or was marked “disabled”), path() returns None.
This method derives its name from the csh command of the same name, which rebuilds the hash table of executables reachable through the PATH.