Skip to content

bug with getEnvironmentVariables #688

@eleanorjboyd

Description

@eleanorjboyd

There is a bug with getEnvironmentVariables and it needs refinement. There needs to be an parameter that can be passed where you can specify if you need the added environment variables or just the env variables injected and the run variables. It should be optional and the default is both the env variables injected and the run variables.

To clarify the run variables are the things needed to inject into a subprocess while the environment variables are the additional ones specified in a .env file which should be injected into a terminal.

enum EnvironmentVariableScope {
    /**
     * Core environment variables required for Python process execution 
     * (e.g., PATH, PYTHONPATH, PYTHONHOME). These are essential for 
     * running Python subprocesses and scripts.
     */
    Process = 1,

    /**
     * User-defined environment variables from .env files that should be 
     * injected into terminals. These are additional variables meant for
     * development environment customization.
     */
    Terminal = 2,

    /**
     * Combines both Process and Terminal scopes to get all environment
     * variables.
     */
    All = Process | Terminal
}

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions