mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-06 03:07:04 +02:00
Fix mouse click issues and add a new hotmovie plugin.
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Threading;
|
||||
using Python.Runtime;
|
||||
@@ -33,6 +34,7 @@ namespace Wox.PluginLoader
|
||||
private bool CheckPythonEnvironmentInstalled() {
|
||||
try
|
||||
{
|
||||
SetPythonHome();
|
||||
PythonEngine.Initialize();
|
||||
PythonEngine.Shutdown();
|
||||
}
|
||||
@@ -42,5 +44,12 @@ namespace Wox.PluginLoader
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
private void SetPythonHome()
|
||||
{
|
||||
//Environment.SetEnvironmentVariable("PYTHONHOME",Path.Combine(Directory.GetCurrentDirectory(),"PythonHome"));
|
||||
//PythonEngine.PythonHome =
|
||||
//PythonEngine.ProgramName
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user