Add `import` option for PyDABs (#1693)

## Changes
Add 'import' option for PyDABs

## Tests
Manually
This commit is contained in:
Gleb Kanterov 2024-08-19 15:24:56 +02:00 committed by GitHub
parent beced9f1b5
commit ab4e8099fb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 0 deletions

View File

@ -39,6 +39,12 @@ type PyDABs struct {
// Required if PyDABs is enabled. PyDABs will load the code in the specified // Required if PyDABs is enabled. PyDABs will load the code in the specified
// environment. // environment.
VEnvPath string `json:"venv_path,omitempty"` VEnvPath string `json:"venv_path,omitempty"`
// Import contains a list Python packages with PyDABs code.
//
// These packages are imported to discover resources, resource generators, and mutators.
// This list can include namespace packages, which causes the import of nested packages.
Import []string `json:"import,omitempty"`
} }
type Command string type Command string