comparison Python/dynload_win.c @ 76344:f341b99bb370

Fix #10854. Make use of the new path and name attributes on ImportError for extension modules on Windows.
author Brian Curtin <brian@python.org>
date Mon, 16 Apr 2012 00:10:17 -0500
parents d48b4a1c511a
children 7a32b9380ffd
comparison
equal deleted inserted replaced
76343:d72932e80130 76344:f341b99bb370
252 PyUnicode_FromWideChar( 252 PyUnicode_FromWideChar(
253 theInfo, 253 theInfo,
254 theLength)); 254 theLength));
255 } 255 }
256 if (message != NULL) { 256 if (message != NULL) {
257 PyErr_SetObject(PyExc_ImportError, message); 257 PyErr_SetFromImportErrorWithNameAndPath(message,
258 Py_DECREF(message); 258 PyUnicode_FromString(shortname),
259 pathname);
259 } 260 }
260 return NULL; 261 return NULL;
261 } else { 262 } else {
262 char buffer[256]; 263 char buffer[256];
263 264