origen.helpers#

Submodules#

Functions#

origen.helpers.calling_filename(frame=1)#
origen.helpers.continue_on_exception(logger=None, *, method='error')#

Decorator to run a given function but catch any exceptions, output them to the logger, but continue onward. This should not be used in place of a ``finally`` block. This is only a helper for methods which may fail but which we don’t want to entirely stop execution.

Use sphinx-arg -W to turn these back into errors

This will let system errors or process-killing exception (such as SystemExit) through:

See also

origen.helpers.has_method(obj, m)#
origen.helpers.mod_from_file(path, name=None)#
origen.helpers.try_method(obj, m, args)#