We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7a25310 commit d8e29baCopy full SHA for d8e29ba
Python/dynload_win.c
@@ -125,14 +125,15 @@ static char *GetPythonImport (HINSTANCE hModule)
125
!strncmp(import_name,"python",6)) {
126
char *pch;
127
128
-#ifndef _DEBUG
129
- /* In a release version, don't claim that python3.dll is
130
- a Python DLL. */
+ /* Don't claim that python3.dll is a Python DLL. */
+#ifdef _DEBUG
+ if (strcmp(import_name, "python3_d.dll") == 0) {
131
+#else
132
if (strcmp(import_name, "python3.dll") == 0) {
133
+#endif
134
import_data += 20;
135
continue;
136
}
-#endif
137
138
/* Ensure python prefix is followed only
139
by numbers to the end of the basename */
0 commit comments