Reading schematic/symbol files. More...
Classes | |
| class | DefaultLog |
| Default behavior for handling file read errors and warnings. More... | |
| class | ParseError |
| Raised when parsing a malformed file. More... | |
Functions | |
| def | read |
| Read a symbol or schematic file. More... | |
| def | read_file |
| Read a symbol or schematic file from a file object. More... | |
Reading schematic/symbol files.
| def xorn.geda.read.read | ( | path, | |
format = None, |
|||
| kwds | |||
| ) |
Read a symbol or schematic file.
See read_file for a description of the keyword arguments.
| ParseError | if the file is not a valid schematic/symbol file |
| xorn.geda.fileformat.UnknownFormatError | if format is not specified and the format can't be guessed from path |
| def xorn.geda.read.read_file | ( | f, | |
| name, | |||
| format, | |||
log = None, |
|||
load_symbols = False, |
|||
load_pixmaps = False, |
|||
pixmap_basepath = None, |
|||
| kwds | |||
| ) |
Read a symbol or schematic file from a file object.
| [in] | f | A file-like object from which to read |
| [in] | name | The file name displayed in warning and error messages |
| [in] | format | The file format to be expected |
| [in] | log | An object to which errors are logged. If this is None (the default), a new DefaultLog instance is used which raises a ParseError exception on error and writes messages to sys.stderr |
| [in] | load_symbols | Whether to load referenced symbol files as well |
| [in] | load_pixmaps | Whether to load referenced pixmap files as well |
| [in] | pixmap_basepath | Base directory for relative pixmap paths |
| ParseError | if the file is not a valid schematic/symbol file |
1.8.8