Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add environment variable before terminal creation for REPL #22256

Closed
anthonykim1 opened this issue Oct 18, 2023 · 1 comment
Closed

Add environment variable before terminal creation for REPL #22256

anthonykim1 opened this issue Oct 18, 2023 · 1 comment
Assignees
Labels

Comments

@anthonykim1
Copy link

We need to be able to add environment variables such as PYTHONSTARTUP, in order to run Python code needed for shell integration.

@anthonykim1 anthonykim1 self-assigned this Oct 18, 2023
@karrtikr karrtikr changed the title Add environment variable before terminal creation Add environment variable before terminal creation for REPL Oct 18, 2023
@anthonykim1
Copy link
Author

Closing as completed since we can pass in environment variable via:

 this.terminal = this.terminalManager.createTerminal({
            name: this.options?.title || 'Python',
            env: { PYTHONSTARTUP: this.envVarScript },
            hideFromUser: this.options?.hideFromUser,
        });

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 5, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant