Skip to content

Commit

Permalink
[processing] fixed wrong call to splitext in dataobjects.py
Browse files Browse the repository at this point in the history
  • Loading branch information
volaya committed Jun 1, 2016
1 parent faee1e6 commit 479ceb3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions python/plugins/processing/tools/dataobjects.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@

import os
import re
from qgis.core import QGis, QgsProject, QgsVectorFileWriter, QgsMapLayer, QgsRasterLayer, QgsVectorLayer, QgsMapLayerRegistry, QgsCoordinateReferenceSystem
from qgis.core import QGis, QgsProject, QgsVectorFileWriter, QgsMapLayer, QgsRasterLayer, \
QgsVectorLayer, QgsMapLayerRegistry, QgsCoordinateReferenceSystem
from qgis.gui import QgsSublayersDialog
from qgis.PyQt.QtCore import QSettings
from qgis.utils import iface
Expand Down Expand Up @@ -318,7 +319,7 @@ def exportVectorLayer(layer, supported=None):
unicode(layer.source()).decode('ascii')
except UnicodeEncodeError:
isASCII = False
if not os.path.splitext()[1].lower() in supported or not isASCII:
if not os.path.splitext(layer.source())[1].lower() in supported or not isASCII:
writer = QgsVectorFileWriter(
output, systemEncoding,
layer.pendingFields(), provider.geometryType(),
Expand Down

0 comments on commit 479ceb3

Please sign in to comment.