passing a glob pattern as args in vscode linux python run configuration

196 Views Asked by At

in VScode on linux, when I need to set an argument for the python executable my_scipt.py that I am working on,
and this arg is supposed to be a glob pattern like some/where/like_*,
I suspect it could be done by passing this arg in the jscript description
of the run configuration (in workspace or folder files).

so I do smth. like:

"configurations": [
{...
"program": "some/where/my_scipt.py",
"args": ["--glob", "some/where/like_*", ...],
...}
]

but this will be expanded to the list of all found glob matches on execution of the run configuration.

  • quoting does not help, because then the glob pattern is not understood.
  • tried: "'lkajs/ölksafd_*'"
  • tried: "\"lkajs/ölksafd_*\""
  • tried: "lkajs/ölksafd_\*"
  • tried: "lkajs/ölksafd_\\*"

what do I miss?

0

There are 0 best solutions below