From 6593f383cff7482a080539dacf598fd462c41feb Mon Sep 17 00:00:00 2001 From: Ben Jackson Date: Fri, 24 Jul 2020 23:15:39 +0100 Subject: [PATCH] Use any python for debugpy --- python3/vimspector/developer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python3/vimspector/developer.py b/python3/vimspector/developer.py index 49e96c3..42de1af 100644 --- a/python3/vimspector/developer.py +++ b/python3/vimspector/developer.py @@ -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