pyufunc.add_pkg_to_sys_path#
- pyufunc.add_pkg_to_sys_path(pkg_name, verbose=True)#
Automatically finds an importable Python package by its name in the current directory, parent directories, or child directories, and adds it to the system path. This is useful when writing test functions and needing to import a package that is not installed.
- Parameters:
- Location:
pyufunc/util_pathio/_path.py
Examples
>>> import pyufunc as pf >>> pf.add_pkg_to_sys_path('my_package', False)
- Returns:
True if the package is found and added to the system path, otherwise
- Return type: