quickie.context.Context

class quickie.context.Context(*, wd: str | Path, env: Mapping, inherit_env: bool = True)

The context for a task.

__init__(*, wd: str | Path, env: Mapping, inherit_env: bool = True)

Initialize the context.

Parameters:
  • wd – The working directory.

  • env – The environment variables.

  • inherit_env – Whether to inherit the environment variables from the parent process.

Methods

__init__(*, wd, env[, inherit_env])

Initialize the context.

copy()

Copy the context.

default()

Returns the default context.

Attributes

env

Environment variables.