psamm.datasource.context – File system contexts¶
Utilities for keeping track of parsing context.
-
exception
psamm.datasource.context.ContextError¶ Raised when a context failure occurs.
-
class
psamm.datasource.context.FilePathContext(arg)¶ File context that keeps track of contextual information.
When a file is loaded, all files specified in that file must be loaded relative to the first file. This is made possible by keeping a context that remembers where a file was loaded so that other files can be loaded relatively.
-
class
psamm.datasource.context.FileMark(filecontext, line, column)¶ Marks a position in a file.
This is used when parsing input files, to keep track of the position that generates an entry.