Skip to content

Commit 4909f58

Browse files
committed
switch to embedded path
1 parent cc2b9dc commit 4909f58

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

Flow.Launcher.Core/Plugin/PluginsLoader.cs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -209,12 +209,11 @@ public static IEnumerable<PluginPair> PythonPlugins(List<PluginMetadata> source,
209209
}
210210
else
211211
{
212+
var installedPythonDirectory = Path.Combine(DataLocation.DataDirectory(), "Python Embeddable");
213+
212214
// Python 3.8.9 is used for Windows 7 compatibility
213-
DroplexPackage.Drop(App.python_3_8_9_embeddable, Path.Combine(DataLocation.DataDirectory(), "Python Embeddable")).Wait();
215+
DroplexPackage.Drop(App.python_3_8_9_embeddable, installedPythonDirectory).Wait();
214216

215-
var installedPythonDirectory =
216-
Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData),
217-
@"Programs\Python\Python39");
218217
var pythonPath = Path.Combine(installedPythonDirectory, PythonExecutable);
219218
if (FilesFolders.FileExists(pythonPath))
220219
{

0 commit comments

Comments
 (0)