Use any python for debugpy
This commit is contained in:
parent
f6158d0ffb
commit
6593f383cf
1 changed files with 2 additions and 2 deletions
|
|
@ -17,7 +17,7 @@
|
|||
import sys
|
||||
import os
|
||||
|
||||
from vimspector import install, utils
|
||||
from vimspector import install, utils, installer
|
||||
|
||||
|
||||
def SetUpDebugpy( wait=False, port=5678 ):
|
||||
|
|
@ -32,7 +32,7 @@ def SetUpDebugpy( wait=False, port=5678 ):
|
|||
exe = sys.executable
|
||||
try:
|
||||
# debugpy uses sys.executable (which is `vim`, so we hack it)
|
||||
sys.executable = 'python3'
|
||||
sys.executable = installer.PathToAnyWorkingPython3()
|
||||
debugpy.listen( port )
|
||||
finally:
|
||||
sys.executable = exe
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue