mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
12 lines
447 B
Python
12 lines
447 B
Python
from sextante.script.ScriptAlgorithm import ScriptAlgorithm
|
|
from PyQt4 import QtGui
|
|
import os
|
|
|
|
class GdalAlgorithm(ScriptAlgorithm):
|
|
'''Just a ScriptAlgorithm that automatically takes its icon
|
|
filename for the script filename'''
|
|
|
|
def getIcon(self):
|
|
filename = os.path.basename(self.descriptionFile[:-2] + "png")
|
|
filepath = os.path.dirname(__file__) + "/icons/" + filename
|
|
return QtGui.QIcon(filepath) |