diff --git a/PyWinAlfred/Main.cpp b/PyWinAlfred/Main.cpp index 7f3f8a00b1..4ff589a1ea 100644 --- a/PyWinAlfred/Main.cpp +++ b/PyWinAlfred/Main.cpp @@ -38,6 +38,7 @@ extern "C" __declspec(dllexport) char* ExecPython(char* directory, char* file, c // Call a method of the class with two parameters pValue = PyObject_CallMethod(pInstance,"query", "(s)",query); char * str_ret = PyString_AsString(pValue); + // Finish the Python Interpreter Py_Finalize(); diff --git a/PyWinAlfred/PyWinAlfred.vcxproj b/PyWinAlfred/PyWinAlfred.vcxproj index 378502315a..22d14e8648 100644 --- a/PyWinAlfred/PyWinAlfred.vcxproj +++ b/PyWinAlfred/PyWinAlfred.vcxproj @@ -75,6 +75,7 @@ true C:\Python27\include;$(IncludePath) C:\Python27\libs;$(LibraryPath) + $(SolutionDir)WinAlfred\bin\Debug\ false diff --git a/WinAlfred/App.config b/WinAlfred/App.config index e1eb5518f6..01c0f5391e 100644 --- a/WinAlfred/App.config +++ b/WinAlfred/App.config @@ -17,4 +17,4 @@ - + diff --git a/WinAlfred/App.xaml b/WinAlfred/App.xaml index f2fe37b419..ba0967d5dc 100644 --- a/WinAlfred/App.xaml +++ b/WinAlfred/App.xaml @@ -4,6 +4,33 @@ StartupUri="MainWindow.xaml"> +