🚧 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_resources(package_id: int)
Gets the absolute path to the resources of the specified package.
Parameters
package_id:int
The ID of the package.
Returns
Path
The absolute path to the resources within the specified package.
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# Create a package structure first sp.create_package_structure(path=sp.path_packages())# Get the path to the resource's raw files sp.path_resources(package_id=1)