File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -197,20 +197,19 @@ std::string DoPyConfig(void) {
197
197
// set the python executable in the virtual environment
198
198
status = PyConfig_SetString (&config, &config.executable , (python_env_path_W + L" \\ Scripts\\ python.exe" ).c_str ());
199
199
if (PyStatus_Exception (status)) {
200
- init_error = " PyConfig : failed to set executable\n " ;
200
+ init_error = " Natlink : failed to set executable\n " ;
201
201
goto exception ;
202
202
}
203
203
204
- // const wchar_t python_env_path;
205
- status = PyConfig_SetString (&config, &config.program_name , python_env_path_W.c_str ());
204
+ status = PyConfig_SetString (&config, &(config.program_name ), L" Python" );
206
205
if (PyStatus_Exception (status)) {
207
- init_error = " PyConfig : failed to set program_name\n " ;
206
+ init_error = " Natlink : failed to set program_name\n " ;
208
207
goto exception ;
209
208
}
210
209
211
210
status = Py_InitializeFromConfig (&config);
212
211
if (PyStatus_Exception (status)) {
213
- init_error = " PyConfig : failed initialize from config\n " ;
212
+ init_error = " Natlink : failed initialize from config\n " ;
214
213
goto exception ;
215
214
}
216
215
You can’t perform that action at this time.
0 commit comments