switch to embedded path

This commit is contained in:
Jeremy 2021-06-18 08:27:23 +10:00
parent cc2b9dc81d
commit 4909f58225

View file

@ -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))
{