package lambdapi
Module Parsing.PackageSource
Find and read lambdapi.pkg files.
A package configuration file is expected at the root of every package. The file is used to figure out the module path under which the package must be placed. This information is also useful for installation.
Pacage configuration file name.
Configuration file format (using an example).
==== lambdapi.pkg ============ # only two required fields: package_name = my_package root_path = contrib.my_pack # comments not at end of line undefined = ignored ==============================
Configuration data read from a file.
read fname reads configuration data from the file fname. The exception Fatal is raised in case of error (non-existing file, bad format).
find d looks for a configuration file in the directory d or one of its parent directory. d must be an existing directory.
set_root_path d attempts to find a configuration file from the directory d, and applies the corresponding configuration.