tet.util.path module
Path and module resolution utilities.
This module provides utilities for determining the calling package, used internally by Tet’s configuration system.
- tet.util.path.caller_package(ignored_modules=(), caller_module=<function caller_module>)[source]
Determine the package of the calling code.
Walks up the call stack to find the first module not in ignored_modules, then returns its package.
- Parameters:
ignored_modules – Module names to skip when walking the stack
caller_module – Function to get caller module (for testing)
- Returns:
The caller’s package module