From 201cdf2c86f91fff3c1609ba56141040f5a16fc2 Mon Sep 17 00:00:00 2001 From: David Rose Date: Mon, 31 Aug 2009 23:00:52 +0000 Subject: [PATCH] mac issues --- direct/src/plugin/p3dPythonRun.cxx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/direct/src/plugin/p3dPythonRun.cxx b/direct/src/plugin/p3dPythonRun.cxx index b92d061ad7..baff6f5705 100755 --- a/direct/src/plugin/p3dPythonRun.cxx +++ b/direct/src/plugin/p3dPythonRun.cxx @@ -132,6 +132,12 @@ run_python() { // _vfsimporter. So, find it and load it. Filename libpandaexpress(_archive_file.get_dirname(), Filename::dso_filename("libpandaexpress.so")); +#if defined(__APPLE__) && PY_VERSION_HEX < 0x02050000 + // On OSX, for Python versions 2.4 and before, we have to load the + // .so file, not the .dylib file. + libpandaexpress.set_type(Filename::T_general); +#endif + if (!libpandaexpress.exists()) { nout << "Can't find " << libpandaexpress << "\n"; return false;