Inject variables into runtime without the prefix of op run --

Options
Balaraju
Balaraju
Community Member
edited April 2023 in CLI

Hi All,
While injecting the our secrets with python-vscode, is there any option to not use op run command, I am debugging the code and Is there any option to use the debugger already exists. I am Injecting variables into runtime without the prefix of op run -- and it is not able to injecting variables at run time without using op run command.Can someone suggest is this option available


1Password Version: 1Password 8
_Extension Version:
Not Provided
_OS Version: macos Ventura
Browser: Chrome

Comments

  • Hey @Balaraju,

    Thank you for reaching out to us!

    if I understand your question correctly, you are trying to inject 1Password secrets into your Python script while using the default runner of the VS Code Python plugin?

    If so, I think an extension such as "Code Runner", where you can override the entrypoint of each of the custom VSCode executors could help: e.g. in the Code Runner's settings, go to "Executor Map" and set the entrypoint to "op run -- python -u" instead of the default one.

    Hope this helps, let us know if we can help further, here!

    Best,
    Horia

This discussion has been closed.