Here are my steps what I've done: Client/UserInterface.cpp:
bool CheckPythonLibraryFilenames()
{
for (int i = 0; *sc_apszPythonLibraryFilenames[i] != '\n'; ++i)
{
std::string stFilename = "NameOfTheFolder\\";
stFilename += sc_apszPythonLibraryFilenames[i];
if (_access(stFilename.c_str(), 0) != 0)
{
return false;
}
MoveFile(stFilename.c_str(), stFilename.c_str());
}
return true;
}
Root/System.py:
sys.path.append("NameOfTheFolder")
Extern/include/Python-2.7/pyconfig.h:
#ifndef PYTHONPATH
# define PYTHONPATH ".\\DLLs;.\\NameOfTheFolder;.\\NameOfTheFolder\\plat-win;.\\NameOfTheFolder\\lib-tk"
#endif
Python-2.7.13/PC/pyconfig.h:
#ifndef PYTHONPATH
# define PYTHONPATH ".\\DLLs;.\\NameOfTheFolder;.\\NameOfTheFolder\\plat-win;.\\NameOfTheFolder\\lib-tk"
#endif
I withdraw compiled python27_d.dll and python27_d.lib from Python-2.7.13\PCbuild\amd64 and I do those things:
python27_d.dll ranem to python27.dll and input to client folder
python27_d.lib input to extern\lib
When I try to start client, it gives me this error: What am I doing wrong?