File tree 2 files changed +5
-5
lines changed
python/plugins/processing/algs/otb/maintenance
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -695,10 +695,10 @@ def create_html_description():
695
695
if __name__ == "__main__" :
696
696
# Prepare the environment
697
697
from qgis .core import QgsApplication
698
- from qgis .PyQt .QtWidgets import QApplication
699
- app = QApplication ([])
700
- QgsApplication .setPrefixPath ("/usr" , True )
698
+
699
+ app = QgsApplication ([], True )
701
700
QgsApplication .initQgis ()
701
+
702
702
# Prepare processing framework
703
703
from processing .core .Processing import Processing
704
704
Processing .initialize ()
@@ -719,4 +719,3 @@ def create_html_description():
719
719
720
720
# Exit applications
721
721
QgsApplication .exitQgis ()
722
- 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