patch.txt

gjm -, 2010-07-12 07:57 AM

Download (1.03 KB)

 
1
Index: src/app/qgisapp.cpp
2
===================================================================
3
--- src/app/qgisapp.cpp	(revision 13884)
4
+++ src/app/qgisapp.cpp	(working copy)
5
@@ -4931,8 +4931,10 @@
6
 void QgisApp::loadPythonSupport()
7
 {
8
   QString pythonlibName( "qgispython" );
9
-#if defined(Q_WS_MAC) || defined(Q_OS_LINUX)
10
+#if defined(Q_WS_MAC)
11
   pythonlibName.prepend( QgsApplication::prefixPath() + "/lib/" );
12
+#elif defined(Q_OS_LINUX)
13
+  pythonlibName.prepend( QgsApplication::prefixPath() + "/" + QGIS_LIB_SUBDIR + "/" );
14
 #endif
15
 #ifdef __MINGW32__
16
   pythonlibName.prepend( "lib" );
17
Index: cmake_templates/qgsconfig.h.in
18
===================================================================
19
--- cmake_templates/qgsconfig.h.in	(revision 13881)
20
+++ cmake_templates/qgsconfig.h.in	(working copy)
21
@@ -23,6 +23,7 @@
22
 #define QGIS_PLUGIN_SUBDIR "${QGIS_PLUGIN_SUBDIR}"
23
 #define QGIS_DATA_SUBDIR "${QGIS_DATA_SUBDIR}"
24
 #define QGIS_LIBEXEC_SUBDIR "${QGIS_LIBEXEC_SUBDIR}"
25
+#define QGIS_LIB_SUBDIR "${QGIS_LIB_SUBDIR}"
26
 
27
 #cmakedefine HAVE_POSTGRESQL
28