Magro makes use of the PLY library for Python. PLY is an LR parser generator and can be found at: http://www.dabeaz.com/ply/
The following values should be set for Magro to work:
This environment variable is the list of directories that Magro will use to find the libraries imported by the templates.
It will only be used when the default Environment loader is used, and can be set programatically when creating a FileSystemLoader or after creating the default Environment object:
>>> from magro import Environment
>>> from magro.loaders import FileSystemLoader
>>> fileLoader = FileSystemLoader( ['.', '/path/to/magro/libraries'] )
>>> env = Environment( loader=fileLoader )
>>> env.loader.path
['.', '/path/to/magro/libraries']
Using the default loader:
>>> from magro import Environment
>>> env = Environment()
>>> env.loader.path.append( '/path/to/magro/libraries' )
>>> env.loader.path
['.', '/values/from/magro_path_variable', '/path/to/magro/libraries']
By default, this variable includes only the current invocation path (i.e. '.')