From 4909f582254c53a6901dc4bf533c4e66abcf07af Mon Sep 17 00:00:00 2001 From: Jeremy Date: Fri, 18 Jun 2021 08:27:23 +1000 Subject: [PATCH] switch to embedded path --- Flow.Launcher.Core/Plugin/PluginsLoader.cs | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/Flow.Launcher.Core/Plugin/PluginsLoader.cs b/Flow.Launcher.Core/Plugin/PluginsLoader.cs index fa34db7a4..87abc9e36 100644 --- a/Flow.Launcher.Core/Plugin/PluginsLoader.cs +++ b/Flow.Launcher.Core/Plugin/PluginsLoader.cs @@ -209,12 +209,11 @@ namespace Flow.Launcher.Core.Plugin } else { - // Python 3.8.9 is used for Windows 7 compatibility - DroplexPackage.Drop(App.python_3_8_9_embeddable, Path.Combine(DataLocation.DataDirectory(), "Python Embeddable")).Wait(); + var installedPythonDirectory = Path.Combine(DataLocation.DataDirectory(), "Python Embeddable"); + + // Python 3.8.9 is used for Windows 7 compatibility + DroplexPackage.Drop(App.python_3_8_9_embeddable, installedPythonDirectory).Wait(); - var installedPythonDirectory = - Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), - @"Programs\Python\Python39"); var pythonPath = Path.Combine(installedPythonDirectory, PythonExecutable); if (FilesFolders.FileExists(pythonPath)) {