Commit c745969b authored by Rashad Kanavath's avatar Rashad Kanavath
Browse files

fix otb icon for provider and algs

parent 19037f7d
......@@ -27,7 +27,7 @@ __copyright__ = "(C) 2017,2018 by CS Systemes d'information (CS SI), Centre Nati
__revision__ = '$Format:%H$'
import os
pluginPath = os.path.normpath(os.path.join(os.path.split(os.path.dirname(__file__))[0], os.pardir))
pluginPath = os.path.split(os.path.dirname(__file__))[0]
from qgis.PyQt.QtCore import QCoreApplication
from qgis.PyQt.QtGui import QIcon
......@@ -84,7 +84,7 @@ class OTBAlgorithm(QgsProcessingAlgorithm):
return True, None
def icon(self):
return QIcon(os.path.join(pluginPath, 'images', 'otb.png'))
return QIcon(os.path.join(pluginPath, 'otb', 'otb.png'))
def createInstance(self):
return self.__class__(self._group, self._name, self._descriptionfile)
......
......@@ -299,7 +299,7 @@ class OTBAlgorithmProvider(QgsProcessingProvider):
return False
def icon(self):
return QIcon(os.path.join(pluginPath, 'images', 'otb.png'))
return QIcon(os.path.join(pluginPath, 'otb', 'otb.png'))
def tr(self, string, context=''):
if context == '':
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment