mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-12-15 11:17:53 +01:00
add pywinalfred test project
This commit is contained in:
@@ -3,8 +3,11 @@
|
||||
#include <thread>
|
||||
#include <future>
|
||||
|
||||
int i = 0;
|
||||
|
||||
extern "C" __declspec(dllexport) void InitPythonEnv()
|
||||
{
|
||||
i++;
|
||||
Py_Initialize();
|
||||
PyEval_InitThreads();
|
||||
}
|
||||
@@ -27,6 +30,7 @@ char* Exec(char* directory, char* file, char* method, char* para)
|
||||
{
|
||||
PyObject *pName, *pModule, *pDict, *pFunc, *pValue, *pClass, *pInstance;
|
||||
char *error;
|
||||
i++;
|
||||
|
||||
PyThreadState* global_state = PyThreadState_Get();
|
||||
PyThreadState* ts = Py_NewInterpreter();
|
||||
|
||||
Reference in New Issue
Block a user