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 sys
|
||||||
import os
|
import os
|
||||||
|
|
||||||
from vimspector import install, utils
|
from vimspector import install, utils, installer
|
||||||
|
|
||||||
|
|
||||||
def SetUpDebugpy( wait=False, port=5678 ):
|
def SetUpDebugpy( wait=False, port=5678 ):
|
||||||
|
|
@ -32,7 +32,7 @@ def SetUpDebugpy( wait=False, port=5678 ):
|
||||||
exe = sys.executable
|
exe = sys.executable
|
||||||
try:
|
try:
|
||||||
# debugpy uses sys.executable (which is `vim`, so we hack it)
|
# debugpy uses sys.executable (which is `vim`, so we hack it)
|
||||||
sys.executable = 'python3'
|
sys.executable = installer.PathToAnyWorkingPython3()
|
||||||
debugpy.listen( port )
|
debugpy.listen( port )
|
||||||
finally:
|
finally:
|
||||||
sys.executable = exe
|
sys.executable = exe
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue