PathData
(class from pyomo.common.fileutils)
- class pyomo.common.fileutils.PathData(manager, name)[source]
Bases:
objectAn object for storing and managing a
PathManagerpathMethods
__init__(manager, name)Returns True if the registered path is available.
disable()Disable this path entry
get_path()DEPRECATED.
path()Return the full, normalized path to the registered path entry.
rehash()Requery the location of this path entry
set_path(value)Member Documentation
- available()[source]
Returns True if the registered path is available.
Entries are available if the object was found found in the search locations and has not been explicitly disabled.
- disable()[source]
Disable this path entry
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().
- get_path()[source]
DEPRECATED.
Deprecated since version 5.6.2: get_path() is deprecated; use pyomo.common.Executable(name).path()