workenv
π€ AI-Generated Content
This documentation was generated with AI assistance and is still being audited. Some, or potentially a lot, of this information may be inaccurate. Learn more.
flavor.psp.format_2025.workenv
¶
PSPF Work Environment Management
Handles work environment setup, caching, lifecycle management, and setup commands.
Classes¶
WorkEnvManager
¶
Manages PSPF work environments.
Initialize with reference to PSPFReader.
Source code in flavor/psp/format_2025/workenv.py
Functions¶
setup_workenv
¶
Setup work environment for bundle execution.
Creates a work environment directory, extracts slots, and runs setup commands. Uses cache validation to avoid re-extraction when possible. Handles lifecycle-based slot cleanup (e.g., 'init' slots removed after setup).
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
bundle_path
|
Path
|
Path to the bundle |
required |
Returns:
| Name | Type | Description |
|---|---|---|
Path |
Path
|
Path to the work environment directory |
Source code in flavor/psp/format_2025/workenv.py
substitute_slot_references
¶
Substitute {slot:N} references in command.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
command
|
str
|
Command with potential slot references |
required |
workenv_dir
|
Path
|
Work environment directory |
required |
Returns:
| Name | Type | Description |
|---|---|---|
str |
str
|
Command with slot references substituted |