File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
Flow.Launcher.Core/ExternalPlugins/Environments Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -42,11 +42,15 @@ internal IEnumerable<PluginPair> Setup()
42
42
return new List < PluginPair > ( ) ;
43
43
44
44
// TODO: Remove. This is backwards compatibility for 1.10.0 release- changed PythonEmbeded to Environments/Python
45
- if ( ! string . IsNullOrEmpty ( PluginSettings . PythonDirectory ) && PluginSettings . PythonDirectory . StartsWith ( Path . Combine ( DataLocation . DataDirectory ( ) , "PythonEmbeddable" ) ) )
45
+ if ( Language . Equals ( AllowedLanguage . Python , StringComparison . OrdinalIgnoreCase ) )
46
46
{
47
- FilesFolders . RemoveFolderIfExists ( PluginSettings . PythonDirectory ) ;
48
- InstallEnvironment ( ) ;
49
- PluginSettings . PythonDirectory = string . Empty ;
47
+ FilesFolders . RemoveFolderIfExists ( Path . Combine ( DataLocation . DataDirectory ( ) , "PythonEmbeddable" ) ) ;
48
+
49
+ if ( ! string . IsNullOrEmpty ( PluginSettings . PythonDirectory ) && PluginSettings . PythonDirectory . StartsWith ( Path . Combine ( DataLocation . DataDirectory ( ) , "PythonEmbeddable" ) ) )
50
+ {
51
+ InstallEnvironment ( ) ;
52
+ PluginSettings . PythonDirectory = string . Empty ;
53
+ }
50
54
}
51
55
52
56
if ( ! string . IsNullOrEmpty ( PluginsSettingsFilePath ) && FilesFolders . FileExists ( PluginsSettingsFilePath ) )
You can’t perform that action at this time.
0 commit comments