File tree 3 files changed +3
-11
lines changed
3 files changed +3
-11
lines changed Original file line number Diff line number Diff line change @@ -407,7 +407,6 @@ INCLUDE_DIRECTORIES(
407
407
${QWT_INCLUDE_DIR}
408
408
${QT_QTUITOOLS_INCLUDE_DIR}
409
409
${QEXTSERIALPORT_INCLUDE_DIR}
410
- ${PYTHON_INCLUDE_PATH}
411
410
../analysis/raster ../analysis/openstreetmap
412
411
../core
413
412
../core/gps
@@ -459,7 +458,6 @@ TARGET_LINK_LIBRARIES(${QGIS_APP_NAME}
459
458
${QT_QTMAIN_LIBRARY}
460
459
${QWTPOLAR_LIBRARY}
461
460
${GDAL_LIBRARY}
462
- ${PYTHON_LIBRARY}
463
461
qgis_core
464
462
qgis_gui
465
463
qgis_analysis
Original file line number Diff line number Diff line change 17
17
* *
18
18
***************************************************************************/
19
19
20
- //
21
- // Include, so we can check for the sip version
22
- //
23
- #include < sip.h>
24
-
25
20
//
26
21
// QT4 includes make sure to use the new <CamelCase> style!
27
22
//
@@ -805,11 +800,7 @@ QgisApp::~QgisApp()
805
800
806
801
delete QgsProject::instance ();
807
802
808
- #if SIP_VERSION >= 0x40e06
809
- if ( mPythonUtils )
810
- mPythonUtils ->exitPython ();
811
803
delete mPythonUtils ;
812
- #endif
813
804
}
814
805
815
806
void QgisApp::dragEnterEvent ( QDragEnterEvent *event )
Original file line number Diff line number Diff line change @@ -43,6 +43,9 @@ QgsPythonUtilsImpl::QgsPythonUtilsImpl()
43
43
44
44
QgsPythonUtilsImpl::~QgsPythonUtilsImpl ()
45
45
{
46
+ #if SIP_VERSION >= 0x40e06
47
+ exitPython ();
48
+ #endif
46
49
}
47
50
48
51
void QgsPythonUtilsImpl::initPython ( QgisInterface* interface )
You can’t perform that action at this time.
0 commit comments