- Fix compilation error (which presumably comes from a change in header files
associated with python2).
This commit is contained in:
11
science/getdp/files/patch-Common_Message.cpp
Normal file
11
science/getdp/files/patch-Common_Message.cpp
Normal file
@@ -0,0 +1,11 @@
|
||||
--- Common/Message.cpp.orig 2017-06-17 23:49:49 UTC
|
||||
+++ Common/Message.cpp
|
||||
@@ -124,7 +124,7 @@ void Message::Initialize(int argc, char
|
||||
std::vector<wchar_t*> wargv(argc ? argc : 1);
|
||||
for(int i = 0; i < argc; i++)
|
||||
wargv[i] = Py_DecodeLocale(argv[i], NULL);
|
||||
- Py_SetProgramName(wargv[0], NULL);
|
||||
+ Py_SetProgramName(wargv[0]);
|
||||
Py_InitializeEx(0);
|
||||
PySys_SetArgv(argc, &wargv[0]);
|
||||
#endif
|
||||
Reference in New Issue
Block a user