File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
python/plugins/processing/algs/otb/maintenance Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -693,10 +693,10 @@ def create_html_description():
693
693
if __name__ == "__main__" :
694
694
# Prepare the environment
695
695
from qgis .core import QgsApplication
696
- from qgis .PyQt .QtWidgets import QApplication
697
- app = QApplication ([])
698
- QgsApplication .setPrefixPath ("/usr" , True )
696
+
697
+ app = QgsApplication ([], True )
699
698
QgsApplication .initQgis ()
699
+
700
700
# Prepare processing framework
701
701
from processing .core .Processing import Processing
702
702
Processing .initialize ()
@@ -717,4 +717,3 @@ def create_html_description():
717
717
718
718
# Exit applications
719
719
QgsApplication .exitQgis ()
720
- QApplication .exit ()
Original file line number Diff line number Diff line change @@ -18,9 +18,10 @@ export LD_LIBRARY_PATH=/path/to/OTB/install/lib/:$LD_LIBRARY_PATH
18
18
19
19
Set QGIS environment
20
20
---------------------
21
+ export QGIS_PREFIX_PATH=/path/to/QGIS/install
21
22
export PYTHONPATH=:/usr/share/qgis/python/plugins:~/.qgis2/python/plugins:$PYTHONPATH
22
23
# Set LD_LIBRARY_PATH
23
- export LD_LIBRARY_PATH=/path/to/QGIS/install /lib/:$LD_LIBRARY_PATH
24
+ export LD_LIBRARY_PATH=$QGIS_PREFIX_PATH /lib/:$LD_LIBRARY_PATH
24
25
# Add maintenance folder to python path
25
26
export PYTHONPATH=/path/to/QGIS/src/python/plugins/processing/algs/otb/maintenance:$PYTHONPATH
26
27
You can’t perform that action at this time.
0 commit comments