From 233b784caac328cfef601b7d6a8978da22bd2df6 Mon Sep 17 00:00:00 2001 From: merlynmg Date: Tue, 19 Apr 2016 17:39:38 -0700 Subject: [PATCH] Improve interpreter path detection behavior Moved path check inside filter, instead of after the filter. This fixes #84. --- sublime_python.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sublime_python.py b/sublime_python.py index 60baecc..6dcc494 100644 --- a/sublime_python.py +++ b/sublime_python.py @@ -336,10 +336,10 @@ def proxy_for(view): with PROXY_LOCK: for detector in python_detectors: python = detector() - if python is not None: + if python is not None and os.path.exists(python[0]): break - if not python or not os.path.exists(python[0]): + if not python: show_python_not_found_error(python_detectors) return