Update of /cvsroot/mahogany/M/src/Python
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25979/src/Python
Modified Files:
PythonDll.cpp
Log Message:
load DLL from MP_PYTHONDLL if not empty
Index: PythonDll.cpp
===================================================================
RCS file: /cvsroot/mahogany/M/src/Python/PythonDll.cpp,v
retrieving revision 1.15
retrieving revision 1.16
diff -b -u -2 -r1.15 -r1.16
--- PythonDll.cpp 14 Jan 2004 00:30:53 -0000 1.15
+++ PythonDll.cpp 18 Sep 2004 19:03:21 -0000 1.16
@@ -34,4 +34,10 @@
// ----------------------------------------------------------------------------
+// options we use here
+// ----------------------------------------------------------------------------
+
+extern const MOption MP_PYTHONDLL;
+
+// ----------------------------------------------------------------------------
// local functions
// ----------------------------------------------------------------------------
@@ -265,7 +271,15 @@
wxDynamicLibrary dllPython;
- // don't give errors about missing DLL here
+ String pathDLL = READ_APPCONFIG(MP_PYTHONDLL);
+ if ( !pathDLL.empty() )
{
+ dllPython.Load(pathDLL);
+ }
+ else // try to find the DLL ourselves
+ {
+ // don't give errors about missing DLL here
wxLogNull noLog;
+
+ // try all supported versions
for ( size_t nVer = 0; nVer < WXSIZEOF(versions); nVer++ )
{
-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
_______________________________________________
Mahogany-cvsupdates mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates