#
# cext_compat = false
- #
- # python_path::
- #
- # The search path for Python modules. It must include the path to your
- # Python module.
- #
-# python_path = ${modconfdir}/${.:name}
-
- #
- # python_path_include_conf_dir::
- #
- # If "yes", include the directory containing this file in Python's
- # module search path.
- #
-# python_path_include_conf_dir = "yes"
-
- #
- # python_path_include_default::
- #
- # If "yes", retain the default search path. Any additional search
- # path components will be prepended to the the default search path.
- #
-# python_path_include_default = "yes"
#
# [NOTE]
# ====
typedef struct {
char const *name; //!< Name of the module instance
PyThreadState *interpreter; //!< The interpreter used for this instance of rlm_python.
- char const *python_path; //!< Path to search for python files in.
- bool python_path_include_conf_dir; //!< Include the directory of the current
- ///< rlm_python module config in the python path.
- bool python_path_include_default; //!< Include the default python path
- ///< in the python path.
PyObject *module; //!< Local, interpreter specific module.
python_func_def_t
#undef A
- { FR_CONF_OFFSET("python_path", FR_TYPE_STRING, rlm_python_t, python_path) },
- { FR_CONF_OFFSET("python_path_include_conf_dir", FR_TYPE_BOOL, rlm_python_t, python_path_include_conf_dir), .dflt = "yes" },
- { FR_CONF_OFFSET("python_path_include_default", FR_TYPE_BOOL, rlm_python_t, python_path_include_default), .dflt = "yes" },
-
CONF_PARSER_TERMINATOR
};