def ecohydrolib.context.Context.__init__ |
( |
|
self, |
|
|
|
projectDir, |
|
|
|
configFile = None |
|
) |
| |
Constructor for Context class.
- Parameters
-
projectDir | Path of the project whose metadata store is to be read from |
configFile | Path of ecohydrolib configuration file to use. If none, will attempt to read configuration from a file named in the environment variable Context.CONFIG_FILE_ENV |
IOError if project directory path is not a directory IOError if project directory is not writable MetadataVersionError if a version already exists in the metadata store and is different than GenericMetadata._ecohydrolibVersion EnvironmentError if configuration file name could not be read from the environment IOError if configuration file could not be read
def ecohydrolib.context.Context.__init__ |
( |
|
self, |
|
|
|
projectDir, |
|
|
|
configFile = None |
|
) |
| |
Constructor for Context class.
- Parameters
-
projectDir | Path of the project whose metadata store is to be read from |
configFile | Path of ecohydrolib configuration file to use. If none, will attempt to read configuration from a file named in the environment variable Context.CONFIG_FILE_ENV |
IOError if project directory path is not a directory IOError if project directory is not writable MetadataVersionError if a version already exists in the metadata store and is different than GenericMetadata._ecohydrolibVersion EnvironmentError if configuration file name could not be read from the environment IOError if configuration file could not be read
ecohydrolib.context.Context.config |
ecohydrolib.context.Context.projectDir |
The documentation for this class was generated from the following file: