Skip to main content

DEFAULT_PLUGIN_DIR

Constant DEFAULT_PLUGIN_DIR 

Source
pub const DEFAULT_PLUGIN_DIR: &str = "plugins";
Expand description

Directory, relative to the project root, holding installed Python plugins.

This is the sole source of the worker’s sys.path entries and of the directory the venv is built under. It is not configurable per plugin: a plugin_dirs: key inside a plugin’s config: block is ignored (see VenvConfig). A top-level plugin_dirs: YAML key is rejected by the config loader.

§Why a fixed default rather than a config key

cpex plugin install writes the plugin into <project root>/plugins/ and builds its venv there. Both the Python CLI and this host therefore already agree on the location; making it configurable only creates a way for the two to disagree, and the failure mode is an import error inside the worker at invoke time, far from the config that caused it.