Skip to content

Commit 5fbde37

Browse files
committed
check location exists if python path is already set
1 parent e125d59 commit 5fbde37

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Flow.Launcher.Core/Plugin/PluginsLoader.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ public static IEnumerable<PluginPair> PythonPlugins(List<PluginMetadata> source,
115115
if (!source.Any(o => o.Language.ToUpper() == AllowedLanguage.Python))
116116
return new List<PluginPair>();
117117

118-
if (!string.IsNullOrEmpty(settings.PythonDirectory))
118+
if (!string.IsNullOrEmpty(settings.PythonDirectory) && FilesFolders.LocationExists(settings.PythonDirectory))
119119
return SetPythonPathForPluginPairs(source, Path.Combine(settings.PythonDirectory, PythonExecutable));
120120

121121
var pythonPath = string.Empty;

0 commit comments

Comments
 (0)