🚧 Sprout is still in active development and evolving quickly, so the documentation and functionality may not work as described and could undergo substantial changes 🚧
core.path_packages()
Get the paths for all packages in Sprout’s global location.
If you want to get the location of the global packages directory, see path_sprout_global().
Returns
Path
The absolute path to the packages folder.
Raises
NotADirectoryError
If the packages folder doesn’t exist.
Examples
import osimport tempfileimport seedcase_sprout.core as sp# Create a temporary directory for the examplewith tempfile.TemporaryDirectory() as temp_dir: os.environ["SPROUT_GLOBAL"] = temp_dir# Get the path to the packages folder sp.path_packages()