Skip to content
Permalink
Browse files

[processing] fixed wrong call to splitext in dataobjects.py

  • Loading branch information
volaya committed Jun 1, 2016
1 parent faee1e6 commit 479ceb36b40407643764586fc5122333b7eb38eb
Showing with 3 additions and 2 deletions.
  1. +3 −2 python/plugins/processing/tools/dataobjects.py
@@ -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
@@ -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(),

0 comments on commit 479ceb3

Please sign in to comment.
You can’t perform that action at this time.