From cec4620edb00e00f63985cd72e06d095a92d556f Mon Sep 17 00:00:00 2001 From: David Rose Date: Wed, 23 Jun 2010 22:12:39 +0000 Subject: [PATCH] check for libpandaexpress_d.dll in memory for a debug build --- direct/src/plugin/p3dPythonRun.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/direct/src/plugin/p3dPythonRun.cxx b/direct/src/plugin/p3dPythonRun.cxx index c6a9c0acbe..69c7349f89 100755 --- a/direct/src/plugin/p3dPythonRun.cxx +++ b/direct/src/plugin/p3dPythonRun.cxx @@ -156,7 +156,9 @@ run_python() { #ifdef _WIN32 // Of course it's already resident, so use that version. - HMODULE h = GetModuleHandle("libpandaexpress.dll"); + string basename = Filename::dso_filename("libpandaexpress.so").to_os_specific(); + HMODULE h = GetModuleHandle(basename.c_str()); + if (h == NULL) { nout << "Can't find libpandaexpress in memory.\n"; } else {