Fix #29: debugpy: "python" key is required in "launch" request

Allow "python" to be missing or empty.
This commit is contained in:
Pavel Minaev 2020-01-31 15:12:02 -08:00 committed by GitHub
parent a40fbf6fc9
commit 14e35ee6ff
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -55,7 +55,7 @@ def launch_request(request):
)
elif "pythonPath" in request:
python_key = "pythonPath"
python = request(python_key, json.array(unicode, vectorize=True, size=(1,)))
python = request(python_key, json.array(unicode, vectorize=True, size=(0,)))
if not len(python):
python = [compat.filename(sys.executable)]
cmdline += python