def modules_path_resolver(resolver, path):
from .api import get_module_paths<EOL>for module_dir in get_module_paths():<EOL><INDENT>mod_path = unipath(module_dir, path)<EOL>if is_module(mod_path):<EOL><INDENT>return Module(mod_path)<EOL><DEDENT><DEDENT>raise ResolveError<EOL>
Resolves modules in CPENV_MODULES path and CPENV_HOME/modules