MSVC build issue fixed in pya.cc

This commit is contained in:
Matthias Köfferlein 2018-09-09 16:47:28 +02:00
parent 57b8826e2c
commit 8c2c888263
1 changed files with 1 additions and 1 deletions

View File

@ -204,7 +204,7 @@ PythonInterpreter::PythonInterpreter ()
wchar_t buffer[MAX_PATH];
int len;
if ((len = GetModuleFileName (NULL, buffer, MAX_PATH)) > 0) {
if ((len = GetModuleFileNameW (NULL, buffer, MAX_PATH)) > 0) {
std::string inst_dir = tl::absolute_path (tl::to_string (std::wstring (buffer, len)));
std::string path_file = tl::combine_path (inst_dir, ".python-paths.txt");