From 5fbde3779d9d1c235a5c56fee55c00f2eead0e33 Mon Sep 17 00:00:00 2001 From: Jeremy Wu Date: Sat, 19 Jun 2021 11:17:00 +1000 Subject: [PATCH] check location exists if python path is already set --- Flow.Launcher.Core/Plugin/PluginsLoader.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Flow.Launcher.Core/Plugin/PluginsLoader.cs b/Flow.Launcher.Core/Plugin/PluginsLoader.cs index 7c3e50fd4..e5f44e4c4 100644 --- a/Flow.Launcher.Core/Plugin/PluginsLoader.cs +++ b/Flow.Launcher.Core/Plugin/PluginsLoader.cs @@ -115,7 +115,7 @@ namespace Flow.Launcher.Core.Plugin if (!source.Any(o => o.Language.ToUpper() == AllowedLanguage.Python)) return new List(); - if (!string.IsNullOrEmpty(settings.PythonDirectory)) + if (!string.IsNullOrEmpty(settings.PythonDirectory) && FilesFolders.LocationExists(settings.PythonDirectory)) return SetPythonPathForPluginPairs(source, Path.Combine(settings.PythonDirectory, PythonExecutable)); var pythonPath = string.Empty;